OSDN Git Service

* update_version_svn (ADD_BRANCHES): Remove autovect-branch
[pf3gnuchains/gcc-fork.git] / maintainer-scripts / update_web_docs_svn
index a587966..74098b4 100755 (executable)
@@ -17,7 +17,6 @@ MANUALS="cpp
   gcc
   gccint
   gcj
-  g77
   gfortran
   gfc-internals
   gnat_ug_unx
@@ -146,16 +145,18 @@ fi
       echo "@clear DEVELOPMENT"
    fi
    echo "@set srcdir $WORKDIR/gcc/gcc"
+   echo "@set VERSION_PACKAGE (GCC)"
+   echo "@set BUGURL @uref{http://gcc.gnu.org/bugs.html}"
 ) > $includedir/gcc-vers.texi
 
 # Now convert the relevant files from texi to HTML, PDF and PostScript.
 for file in $MANUALS; do
   filename=`find . -name ${file}.texi`
   if [ "${filename}" ]; then
-    makeinfo --html -I ${includedir} -I `dirname ${filename}` ${filename}
+    makeinfo --html -I ${includedir} -I `dirname ${filename}` -o ${file} ${filename}
     tar cf ${file}-html.tar ${file}/*.html
-    texi2dvi -I ${includedir} ${filename} </dev/null && dvips -o ${file}.ps ${file}.dvi
-    texi2pdf -I ${includedir} ${filename} </dev/null
+    texi2dvi -I ${includedir} -o ${file}.dvi ${filename} </dev/null && dvips -o ${file}.ps ${file}.dvi
+    texi2pdf -I ${includedir} -o ${file}.pdf ${filename} </dev/null
     mkdir -p $DOCSDIR/$file
   fi
 done
@@ -175,7 +176,7 @@ if test $today = 15; then
   done
 fi
 
-# Copy the resulting files to the web server.
+# And copy the resulting files to the web server
 for file in */*.html *.ps *.pdf *.tar; do
   if [ -f $DOCSDIR/$file ]; then
     cat $DOCSDIR/$file | 
@@ -195,25 +196,18 @@ done
 
 cd $DOCSDIR
 
-# And generate version-specific installation documentation.
-SOURCEDIR=$WORKDIR/gcc/gcc/doc
-DESTDIR=$DOCSDOR/install
-export SOURCEDIR
-export DESTDIR
-$WORKDIR/gcc/gcc/doc/install.texi2html
-
-# Finally, generate the primary installation documentation.
+# Finally, generate the installation documentation
 if [ "$RELEASE" = "trunk" ]; then
   SOURCEDIR=$WORKDIR/gcc/gcc/doc
   DESTDIR=$WWWBASE_PREFORMATTED/install
   export SOURCEDIR
   export DESTDIR
   $WORKDIR/gcc/gcc/doc/install.texi2html
-fi
 
-# Preprocess the entire web site, not just the install docs!
-echo "Invoking $WWWPREPROCESS"
-$WWWPREPROCESS | grep -v '^  Warning: Keeping'
+  # Preprocess the entire web site, not just the install docs!
+  echo "Invoking $WWWPREPROCESS"
+  $WWWPREPROCESS |grep -v '^  Warning: Keeping'
+fi
 
 # Clean up behind us.