This is the mail archive of the 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]

proposed egcs_update

If you have dropped libg++ and librx into your CVS tree, egcs_update
quits doing the right thing becuause it explictly tries to update the files in these non-CVS controlled directories.

The attached patch cures this.

	* egcs_update: Do the pass 1 CVS update only for files that 
	may reasonably be under CVS control.

Index: egcs_update
RCS file: /egcs/carton/cvsfiles/egcs/contrib/egcs_update,v
retrieving revision 1.3
diff -u -p -r1.3 egcs_update
--- egcs_update 1998/08/12 11:02:37     1.3
+++ egcs_update 1998/09/03 02:49:21
@@ -48,7 +48,14 @@ fi

 echo "Pass 1: Updating autoconf and bison generated files"
-find . -name -o -name '*.y' | xargs cvs -q update
+# Do a CVS update on those files that exist in CVS directories.  libg++
+# makes sense to drop into the tree, but it isn't CVS-controlled.
+for i in `find . -name -o -name '*.y'`
+       D=`dirname $i`/CVS
+       [ -f $i -a  -d $D ]  && echo $i
+done | xargs cvs -q update

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