From: Felix Fietkau Date: Mon, 1 Feb 2016 10:33:25 +0000 (+0000) Subject: scripts/get_source_date_epoch.sh: for SVN use a variant that is compatible with older... X-Git-Tag: reboot~548 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;ds=sidebyside;h=18ba1305d535290ea07adf03a567661dc9043309;p=openwrt%2Fstaging%2Fchunkeey.git scripts/get_source_date_epoch.sh: for SVN use a variant that is compatible with older versions Signed-off-by: Felix Fietkau SVN-Revision: 48593 --- 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" ] }