OSDN Git Service

* update_web_docs: Set SOURCEDIR so that install manual can be
[pf3gnuchains/gcc-fork.git] / maintainer-scripts / update_web_docs
index fd80c9d..a568f09 100755 (executable)
@@ -87,19 +87,21 @@ cd $WORKDIR
 find $CVSROOT/gcc -name \*.texi,v -print | fgrep -v -f/home/gccadmin/scripts/doc_exclude | sed -e s#$CVSROOT/##g -e s#,v##g -e s#Attic/##g > FILES
 
 
-# Checkout all the texi files and get them into a single directory.
-# If we ever have texi files with the same name we'll have to do this
-# differently.
+# Checkout all the texi files.
 cvs -Q co -r$RELEASE `cat FILES` gcc/gcc/doc/install.texi2html gcc/gcc/texinfo.tex gcc/gcc/doc/texinfo.tex gcc/gcc/doc/include/texinfo.tex
-mv `find . -name \*.texi -print` .
-mv `find . -name \*.tex -print` .
+
+# Find the directory to pass to -I; this is the one with texinfo.tex
+# and fdl.texi.
+texitexloc=`find . -name texinfo.tex`
+includedir=${texitexloc%/*}
 
 # Now convert the relevant files from texi to HTML and PostScript.
 for file in cpp chill cppinternals gcc gcj g77 gnat-style libiberty \
     objc-features porting; do
-  if [ -e ${file}.texi ]; then
-    /usr/local/bin/texi2html -glossary -menu -split_chapter ${file}.texi
-    texi2dvi ${file}.texi </dev/null && dvips -o ${file}.ps ${file}.dvi
+  filename=`find . -name ${file}.texi`
+  if [ "${filename}" ]; then
+    /usr/local/bin/texi2html -glossary -menu -split_chapter -I ${includedir} ${filename}
+    texi2dvi -I ${includedir} ${filename} </dev/null && dvips -o ${file}.ps ${file}.dvi
   fi
 done
 
@@ -157,7 +159,7 @@ fi
 
 # Finally, generate the installation documentation (but only for CVS HEAD).
 if [ "$RELEASE" = "HEAD" ]; then
-  SOURCEDIR=$WORKDIR
+  SOURCEDIR=$WORKDIR/gcc/gcc/doc
   DESTDIR=$WWWBASE_PREFORMATTED/install
   export SOURCEDIR
   export DESTDIR
@@ -165,7 +167,7 @@ if [ "$RELEASE" = "HEAD" ]; then
 
   # Preprocess the entire web site, not just the install docs!
   echo "Invoking $WWWPREPROCESS"
-  $WWWPREPROCESS
+  $WWWPREPROCESS |grep -v '^  Warning: Keeping'
 fi
 
 # Clean up behind us.