PATCH: bin/preprocess
Gerald Pfeifer
pfeifer@dbai.tuwien.ac.at
Mon Feb 12 14:37:00 GMT 2001
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
More information about the Gcc-patches
mailing list