This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: restore search functionality
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 17 Jul 2002 17:12:21 +0200 (CEST)
- Subject: Re: PATCH: restore search functionality
On Wed, 17 Jul 2002, Gerald Pfeifer wrote:
> This has been in my local tree for a few days (weeks), and I can't help
> wondering why nobody complained about the missing search functionality?
And this is the second piece we need to make this work (and which should
also prove useful in the future):
Set the MetaHTML include directory.
Gerald
Index: preprocess
===================================================================
RCS file: /cvs/gcc/wwwdocs/bin/preprocess,v
retrieving revision 1.30
diff -u -3 -p -r1.30 preprocess
--- preprocess 8 Jan 2002 13:01:22 -0000 1.30
+++ preprocess 17 Jul 2002 15:09:53 -0000
@@ -105,8 +105,11 @@ process_file()
copy_if_different $f $DESTTREE/$f
;;
*.html)
- # Prepend the MetaHTML style and process the page.
- cat $STYLE $f > $TMPDIR/input
+ # Prepend the MetaHTML style, set the MetaHTML include directory,
+ # and process the page.
+ cat $STYLE > $TMPDIR/input
+ printf '<set-var MHTML::INCLUDE-PREFIX="%s">\n' `pwd` >> $TMPDIR/input
+ cat $f >> $TMPDIR/input
${MHC} $TMPDIR/input > $TMPDIR/output
# Copy the page only if it's new or there has been a change.