summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorgerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>1998-08-11 08:38:09 +0000
committergerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>1998-08-11 08:38:09 +0000
commita2e539b068ecf87f378f45c7726b53b09203787d (patch)
tree4983fbb2ca2651d0945ffd45b71272cf04b48a39 /contrib
parentadb58b3c0aa1aeb91f2401754493fb7bf8397c41 (diff)
downloadgcc-a2e539b068ecf87f378f45c7726b53b09203787d.tar.gz
* egcs_update: New script.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21664 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog4
-rwxr-xr-xcontrib/egcs_update47
2 files changed, 51 insertions, 0 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 8ea110ed888..1f8ac60aa99 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,7 @@
+Tue Aug 11 17:33:19 1998 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
+
+ * egcs_update: New script.
+
1998-08-05 Bruce Korb <korbb@datadesign.com>
* fixinc/Makefile
diff --git a/contrib/egcs_update b/contrib/egcs_update
new file mode 100755
index 00000000000..7d76187d5ad
--- /dev/null
+++ b/contrib/egcs_update
@@ -0,0 +1,47 @@
+#! /bin/sh
+#
+# Update a local CVS tree from the egcs repository, with an emphasis
+# 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.
+
+UPDATE_OPTIONS=-P
+# Add -d to create any directories that exist in the repository but not
+# locally.
+# Add -A to reset any sticky tags, dates, or `-k' options.
+
+
+echo "Current directory is `pwd`."
+
+# First of all, check whether this indeed looks like a local CVS of egcs.
+if [ ! -d CVS ] || [ ! -f gcc/version.c ]; then
+ echo "This does not seem to be an egcs CVS tree!"
+ exit
+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
+
+echo "Pass 3: Fixing local tree"
+touch `find . -name configure -print`
+touch `find texinfo -name Makefile.in -print`
+touch `find texinfo -name \*.pot -print`
+touch `find texinfo -name \*.gmo -print`
+for f in gcc/c-parse.y \
+ gcc/cstamp-h.in \
+ gcc/c-gperf.h \
+ gcc/c-parse.c \
+ gcc/c-parse.h \
+ gcc/cexp.c \
+ gcc/cp/parse.c \
+ gcc/cp/parse.h \
+ gcc/objc/objc-parse.c \
+ gcc/objc/objc-parse.y \
+ libf2c/libU77/stamp-h.in
+do
+ touch $f
+done