summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorgerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>1998-08-11 09:04:53 +0000
committergerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>1998-08-11 09:04:53 +0000
commit83dbb0204c5d494748e5039a014948233b3de55b (patch)
tree3bad9f0bac19b5a077e75b21f2b2467378cd1157 /contrib
parenta2e539b068ecf87f378f45c7726b53b09203787d (diff)
downloadgcc-83dbb0204c5d494748e5039a014948233b3de55b.tar.gz
* egcs_update: New switch --nostdflags and documentation
enhancements. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21667 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog6
-rwxr-xr-xcontrib/egcs_update24
2 files changed, 28 insertions, 2 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 1f8ac60aa99..bdea6ebf229 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,9 @@
+Tue Aug 11 17:55:53 1998 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
+ Alexandre Oliva <oliva@dcc.unicamp.br>
+
+ * egcs_update: New switch --nostdflags and documentation
+ enhancements.
+
Tue Aug 11 17:33:19 1998 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* egcs_update: New script.
diff --git a/contrib/egcs_update b/contrib/egcs_update
index 7d76187d5ad..0a761e51091 100755
--- a/contrib/egcs_update
+++ b/contrib/egcs_update
@@ -4,7 +4,18 @@
# on treating generated files correctly, so that autoconf, bison et
# al are not required for the ``end'' user.
#
-# By Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>, 10.8.1998.
+# By default all command-line options are passed to `cvs update` in
+# addition to $UPDATE_OPTIONS (defined below). If the first parameter
+# reads --nostdflags, $UPDATE_OPTIONS as well as this parameter itself
+# are omitted.
+#
+# Examples:
+#
+# contrib/egcs_update -r egcs_latest_snapshot
+# contrib/egcs_update -A
+# contrib/egcs_update --nostdflags -P -r egcs_1_1_branch gcc/testsuite
+#
+# By Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>, August 1998.
UPDATE_OPTIONS=-P
# Add -d to create any directories that exist in the repository but not
@@ -20,11 +31,20 @@ if [ ! -d CVS ] || [ ! -f gcc/version.c ]; then
exit
fi
+# Check command-line options
+
+if [ x"${1}"x = x"--nostdflags"x ]; then
+ shift
+else
+ set -- $UPDATE_OPTIONS ${1+"$@"}
+fi
+
+
echo "Pass 1: Updating autoconf and bison generated files"
find . -name configure.in -o -name '*.y' | xargs cvs -q update
echo "Pass 2: Updating full tree"
-cvs -q update $UPDATE_OPTIONS
+cvs -q update ${1+"$@"}
echo "Pass 3: Fixing local tree"
touch `find . -name configure -print`