diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-02-01 10:33:25 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-02-01 10:33:25 +0000 |
commit | 4473a10ef2b52870171e758c61568e7e4dcca542 (patch) | |
tree | 4e750fb5ea3543d1df471c7b377ce0ef316decf7 /scripts | |
parent | c603072636731aba7d1e9e20e6603619072f6295 (diff) | |
download | master-187ad058-4473a10ef2b52870171e758c61568e7e4dcca542.tar.gz master-187ad058-4473a10ef2b52870171e758c61568e7e4dcca542.tar.bz2 master-187ad058-4473a10ef2b52870171e758c61568e7e4dcca542.zip |
scripts/get_source_date_epoch.sh: for SVN use a variant that is compatible with older versions
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48593 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/get_source_date_epoch.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/get_source_date_epoch.sh b/scripts/get_source_date_epoch.sh index b8efb761d0..436df9d064 100755 --- a/scripts/get_source_date_epoch.sh +++ b/scripts/get_source_date_epoch.sh @@ -11,7 +11,7 @@ try_version() { try_svn() { [ -d .svn ] || return 1 - SOURCE_DATE_EPOCH="$(./scripts/portable_date.sh "$(svn info --show-item last-changed-date)" +%s)" + SOURCE_DATE_EPOCH="$(./scripts/portable_date.sh "$(LC_ALL=C svn info | sed -ne 's/^Last Changed Date: //p')" +%s)" [ -n "$SOURCE_DATE_EPOCH" ] } |