X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=contrib%2Fgcc_update;h=37e65af59c4af2fabb42b2af608892178aa1a938;hp=5dfc419c28ff0cd33be67ac6b3699152e96e343d;hb=3cb2cc3b4dde044a8e2d25d546a14a75722657e4;hpb=babbbe81770c50803221330749bb3cf11f0d1783 diff --git a/contrib/gcc_update b/contrib/gcc_update index 5dfc419c28f..37e65af59c4 100755 --- a/contrib/gcc_update +++ b/contrib/gcc_update @@ -43,6 +43,12 @@ GCC_SVN=${GCC_SVN-${SVN-svn}} # Default options used when updating via SVN (none). UPDATE_OPTIONS="" +# Set the locale to C to make this script work for users with foreign +# locale like e.g. French UTF-8. +LANG=C +LC_ALL=C +export LANG LC_ALL + ######## Anything below shouldn't be changed by regular users. # Arrange for the value of $0 to be available for functions @@ -81,6 +87,12 @@ gcc/java/keyword.h: gcc/java/keyword.gperf # testsuite # Without this, _Pragma3.c can have a false negative. gcc/testsuite/gcc.dg/cpp/_Pragma3.c: gcc/testsuite/gcc.dg/cpp/mi1c.h +# Similarly, without this, you will see: +# direct2s.c:35: warning: current file is older than direct2.c +gcc/testsuite/gcc.dg/cpp/direct2s.c: gcc/testsuite/gcc.dg/cpp/direct2.c +# lto-plugin +lto-plugin/configure: lto-plugin/configure.ac lto-plugin/aclocal.m4 +lto-plugin/Makefile.in: lto-plugin/Makefile.am lto-plugin/aclocal.m4 # And libraries, at last libbanshee/configure: libbanshee/configure.ac libmudflap/configure: libmudflap/configure.ac @@ -112,9 +124,14 @@ libjava/libltdl/config-h.in: libjava/libltdl/configure.ac libjava/libltdl/acloca libcpp/aclocal.m4: libcpp/configure.ac libcpp/Makefile.in: libcpp/configure.ac libcpp/aclocal.m4 libcpp/configure: libcpp/configure.ac libcpp/aclocal.m4 +libgomp/aclocal.m4: libgomp/configure.ac libgomp/acinclude.m4 +libgomp/Makefile.in: libgomp/Makefile.am libgomp/aclocal.m4 +libgomp/testsuite/Makefile.in: libgomp/Makefile.am libgomp/aclocal.m4 +libgomp/configure: libgomp/configure.ac libgomp/aclocal.m4 +libgomp/config.h.in: libgomp/configure.ac libgomp/aclocal.m4 # Top level Makefile.in: Makefile.tpl Makefile.def -configure: configure.in config/acx.m4 +configure: configure.ac config/acx.m4 EOF } @@ -250,8 +267,20 @@ if [ $? -ne 0 ]; then exit 1 fi +rm -f LAST_UPDATED gcc/REVISION + +revision=`svn info | awk '/Revision:/ { print $2 }'` +branch=`svn info | sed -ne "/URL:/ { +s,.*/trunk,trunk, +s,.*/branches/,, +s,.*/tags/,, +p +}"` { date - echo "`TZ=UTC date` (revision `svnversion .`)" + echo "`TZ=UTC date` (revision $revision)" } > LAST_UPDATED + +echo "[$branch revision $revision]" > gcc/REVISION + touch_files_reexec