This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problems with cvs -z9 update


[ Please remove egcs@cygnus.com from replies. ]

On Sat, 8 Aug 1998, Jeffrey A Law wrote:
>> Actually that script won't work with plain /bin/sh! :-(
> Yea, but how many people work with plain sh? :-)

None that I know! ;-)  I was just thinking about the script...

>> However, I'd be willing to contribute a full egcs-update script, that 
>> updates a CVS tree along the lines of faq.html#generated_files.
> That would be great!

Here we go. Okay to check that in (as a first draft)?
I guess both branches would be nice?

Gerald


Mon Aug 10 19:23:24 1998  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>

	* egcs_update: New script.

*** /dev/null	Mon Aug 10 17:35:26 1998
--- egcs_update	Mon Aug 10 19:37:56 1998
***************
*** 0 ****
--- 1,41 ----
+ #!/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.
+ 
+ echo "Current directory is `pwd`."
+ 
+ # First of all, check whether this indeed looks like a local CVS of egcs.
+ if [ ! -d CVS  -o  ! -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 -P -d -A
+ 
+ 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]