This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: bin/preprocess
- To: <gcc-patches at gcc dot gnu dot org>
- Subject: PATCH: bin/preprocess
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Mon, 12 Feb 2001 23:36:23 +0100 (CET)
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