summaryrefslogtreecommitdiffstats
path: root/scripts/get_source_date_epoch.sh
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2016-03-24 22:40:13 +0100
committerJohn Crispin <blogic@openwrt.org>2016-03-24 22:40:13 +0100
commitfa69553900516944fc43cf7b377105ea1f6d3db0 (patch)
tree2df1a9d02c0a785f6d5865bd6e82fbc65243e4ad /scripts/get_source_date_epoch.sh
parent343c3be45451e4a11f03109bd6cb1dd9061ec5eb (diff)
downloadmaster-31e0f0ae-fa69553900516944fc43cf7b377105ea1f6d3db0.tar.gz
master-31e0f0ae-fa69553900516944fc43cf7b377105ea1f6d3db0.tar.bz2
master-31e0f0ae-fa69553900516944fc43cf7b377105ea1f6d3db0.zip
branding: add LEDE branding
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'scripts/get_source_date_epoch.sh')
-rwxr-xr-xscripts/get_source_date_epoch.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/scripts/get_source_date_epoch.sh b/scripts/get_source_date_epoch.sh
index 436df9d064..ea8d930109 100755
--- a/scripts/get_source_date_epoch.sh
+++ b/scripts/get_source_date_epoch.sh
@@ -9,12 +9,6 @@ try_version() {
[ -n "$SOURCE_DATE_EPOCH" ]
}
-try_svn() {
- [ -d .svn ] || return 1
- SOURCE_DATE_EPOCH="$(./scripts/portable_date.sh "$(LC_ALL=C svn info | sed -ne 's/^Last Changed Date: //p')" +%s)"
- [ -n "$SOURCE_DATE_EPOCH" ]
-}
-
try_git() {
[ -e .git ] || return 1
SOURCE_DATE_EPOCH="$(git log -1 --format=format:%ct)"
@@ -27,5 +21,5 @@ try_hg() {
[ -n "$SOURCE_DATE_EPOCH" ]
}
-try_version || try_svn || try_git || try_hg || SOURCE_DATE_EPOCH=""
+try_version || try_git || try_hg || SOURCE_DATE_EPOCH=""
echo "$SOURCE_DATE_EPOCH"