PATCH for Re: Web Page Content Error
Gerald Pfeifer
pfeifer@dbai.tuwien.ac.at
Wed Nov 6 13:47:00 GMT 2002
On 6 Nov 2002, Tom Tromey wrote:
>> I believe we can fix this problem by (a) excluding all pages under
>> /java/papers from the preprocessing we perform on gcc.gnu.org, or
>> (b) removing all DOCTYPES from the pages there.
>> Personally, given that these pages are generated automatically, I
>> believe that (a) is the better fix [...]
> I think (a) is fine. These papers are basically static content. I
> haven't looked at them in years...
Based on this feedback I just committed the patch below and tested it
on gcc.gnu.org as well by rebuilding the web pages.
Update the pattern matching .cvsignore files. Treat java/papers/*.html
files as "binary" and add a comment for these and all other files treated
similarly.
Gerald
Index: preprocess
===================================================================
RCS file: /cvs/gcc/wwwdocs/bin/preprocess,v
retrieving revision 1.34
diff -u -3 -p -r1.34 preprocess
--- preprocess 28 Oct 2002 19:12:44 -0000 1.34
+++ preprocess 6 Nov 2002 20:21:29 -0000
@@ -108,14 +108,22 @@ process_file()
fi
case $f in
- */CVS|*/\.cvsignore)
+ */CVS|*\.cvsignore)
;;
+
+ # Treat the following files as "binary" and simply copy them
+ # whenever they do not already exist in the destination tree
+ # or when the copies in the source and destination trees differ.
*\.htaccess|*\.htpasswd)
copy_if_different $f $DESTTREE/$f
;;
*\.txt|*\.ps|*\.ps\.gz|*\.pdf|*\.jpg|*\.jpeg|*\.png|*\.patch|*\.diff)
copy_if_different $f $DESTTREE/$f
;;
+ java/papers/*\.html)
+ copy_if_different $f $DESTTREE/$f
+ ;;
+
*\.html)
# Set environment variable PREPROCESS_FILE, which will then be
# accessible by MetaHTML.
More information about the Java
mailing list