Set TZ=UTC in update-icu.sh so that $Date$ expansions in ICU source expand identically no matter where update-icu.sh is run. Useful but not necessary preliminary to bug 924839, rs=jimb over IRC
authorJeff Walden <jwalden@mit.edu>
Fri, 03 Jan 2014 17:44:24 -0600
changeset 165911 f4be2e32a9be29c1a807adb2f0f4b341dfaf8e22
parent 165910 3b0697637ef5c0e618615dcfe4653c72e0a3b6cb
child 165912 32aeb054f7574a9de998e8517e6759ff466dd8bb
push idunknown
push userunknown
push dateunknown
reviewersjimb
bugs924839
milestone29.0a1
Set TZ=UTC in update-icu.sh so that $Date$ expansions in ICU source expand identically no matter where update-icu.sh is run. Useful but not necessary preliminary to bug 924839, rs=jimb over IRC
intl/update-icu.sh
--- a/intl/update-icu.sh
+++ b/intl/update-icu.sh
@@ -6,16 +6,20 @@
 # Usage: update-icu.sh <URL of ICU SVN with release>
 # E.g., for ICU 50.1.1: update-icu.sh http://source.icu-project.org/repos/icu/icu/tags/release-50-1-1/
 
 if [ $# -lt 1 ]; then
   echo "Usage: update-icu.sh <URL of ICU SVN with release>"
   exit 1
 fi
 
+# Ensure that $Date$ in the checked-out svn files expands timezone-agnostically,
+# so that this script's behavior is consistent when run from any time zone.
+export TZ=UTC
+
 icu_dir=`dirname $0`/icu
 rm -rf ${icu_dir}
 svn export $1 ${icu_dir}
 
 # remove layout, tests, and samples, but leave makefiles in place
 find ${icu_dir}/source/layout -name '*Makefile.in' -prune -or -type f -print | xargs rm
 find ${icu_dir}/source/layoutex -name '*Makefile.in' -prune -or -type f -print | xargs rm
 find ${icu_dir}/source/test -name '*Makefile.in' -prune -or -type f -print | xargs rm