Don't write out the repository revision to intl/icu/SVN-INFO, so that the results of running this script remain constant over time when the same ICU repository path is specified. Useful but not necessary preliminary to bug 924839, r=jimb over IRC
authorJeff Walden <jwalden@mit.edu>
Sat, 14 Dec 2013 16:04:21 -0500
changeset 165910 3b0697637ef5c0e618615dcfe4653c72e0a3b6cb
parent 165909 a7566746035f19fee07ef9959eafca550f1c42a0
child 165911 f4be2e32a9be29c1a807adb2f0f4b341dfaf8e22
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersjimb
bugs924839
milestone29.0a1
Don't write out the repository revision to intl/icu/SVN-INFO, so that the results of running this script remain constant over time when the same ICU repository path is specified. Useful but not necessary preliminary to bug 924839, r=jimb over IRC
intl/update-icu.sh
--- a/intl/update-icu.sh
+++ b/intl/update-icu.sh
@@ -30,18 +30,22 @@ find ${icu_dir}/source/data/mappings \
     -name ibm-37_P100-1995.ucm -prune -or \
     -name ibm-1047_P100-1995.ucm -prune -or \
     -name '*.ucm' -print | xargs rm
 rm ${icu_dir}/source/data/rbnf/*
 rm ${icu_dir}/source/data/region/*.mk
 rm ${icu_dir}/source/data/region/*.txt
 rm ${icu_dir}/source/data/translit/*
 
-# Record `svn info`
-svn info $1 > ${icu_dir}/SVN-INFO
+# Record `svn info`, eliding the line that changes every time the entire ICU
+# repository (not just the path within it we care about) receives a commit.
+# (This ensures that if ICU modifications are performed properly, it's always
+# possible to run the command at the top of this script and make no changes to
+# the tree.)
+svn info $1 | grep -v '^Revision: [[:digit:]]\+$' > ${icu_dir}/SVN-INFO
 
 patch -d ${icu_dir}/../../ -p1 < ${icu_dir}/../icu-patches/bug-724533
 patch -d ${icu_dir}/../../ -p1 < ${icu_dir}/../icu-patches/bug-853706
 patch -d ${icu_dir}/../../ -p1 < ${icu_dir}/../icu-patches/bug-899722
 patch -d ${icu_dir}/../../ -p1 < ${icu_dir}/../icu-patches/bug-899722-2
 patch -d ${icu_dir}/../../ -p1 < ${icu_dir}/../icu-patches/bug-899722-4
 
 hg addremove ${icu_dir}