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]
Other format: [Raw text]

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.


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