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]

PATCH: bin/preprocess


Make remove_cruft() ignore some directories, as specified by
EXCLUDE_FROM_REMOVAL. Installed.

Gerald

Index: preprocess
===================================================================
RCS file: /cvs/gcc/wwwdocs/bin/preprocess,v
retrieving revision 1.14
diff -u -3 -p -r1.14 preprocess
--- preprocess	2001/02/06 13:03:01	1.14
+++ preprocess	2001/02/12 22:23:03
@@ -17,6 +17,8 @@ DESTTREE=${DESTTREE-/www/gcc/htdocs}

 STYLE=$SOURCETREE/style.mhtml

+EXCLUDE_FROM_REMOVAL='benchresults|testresults'
+
 ####
 # Various safety check first.

@@ -47,7 +49,7 @@ trap "cleanup; exit 1" 1 2 15
 remove_cruft() {
     cd $DESTTREE

-    for f in `find . -type f` ; do
+    for f in `find . -type f \( -name $EXCLUDE_FROM_REMOVAL -prune -o -print \) ` ; do
         if [ ! -f $SOURCETREE/$f ]; then
             echo "Removing obsolete file $f"
             #rm $f


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