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]

Patch to update_web_docs to generate PDF manuals


This patch adds support to update_web_docs for generating PDF manuals, 
thereby fixing bug 23693.  Applied to mainline.  I've regenerated the 
manuals for mainline, 4.0.2 and 3.4.4 and applied the appended onlinedocs 
patch to link to the PDF versions.

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/maintainer-scripts/ChangeLog,v
retrieving revision 1.124
diff -u -r1.124 ChangeLog
--- ChangeLog	30 Sep 2005 21:31:34 -0000	1.124
+++ ChangeLog	30 Sep 2005 22:03:14 -0000
@@ -1,5 +1,10 @@
 2005-09-30  Joseph S. Myers  <joseph@codesourcery.com>
 
+	PR other/23693
+	* update_web_docs: Add PDF support.  Correct check of DEV-PHASE.
+
+2005-09-30  Joseph S. Myers  <joseph@codesourcery.com>
+
 	* update_web_docs_old: Remove.
 
 2005-08-14  Kelley Cook  <kcook@gcc.gnu.org>
Index: update_web_docs
===================================================================
RCS file: /cvs/gcc/gcc/maintainer-scripts/update_web_docs,v
retrieving revision 1.25
diff -u -r1.25 update_web_docs
--- update_web_docs	16 Mar 2005 06:04:10 -0000	1.25
+++ update_web_docs	30 Sep 2005 22:03:14 -0000
@@ -110,26 +110,27 @@
 # Generate gcc-vers.texi.
 (
    echo "@set version-GCC $(cat gcc/gcc/BASE-VER)"
-   if "$(cat gcc/gcc/DEV-PHASE)" = "experimental"; then
+   if [ "$(cat gcc/gcc/DEV-PHASE)" = "experimental" ]; then
       echo "@set DEVELOPMENT"
    else
       echo "@clear DEVELOPMENT"
    fi
 ) > $includedir/gcc-vers.texi
 
-# Now convert the relevant files from texi to HTML and PostScript.
+# 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}
     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
     mkdir -p $DOCSDIR/$file
   fi
 done
 
 # Then build a gzipped copy of each of the resulting .html, .ps and .tar files
-for file in */*.html *.ps *.tar; do
+for file in */*.html *.ps *.pdf *.tar; do
   cat $file | gzip --best > $file.gz
 done
 
@@ -144,7 +145,7 @@
 fi
 
 # And copy the resulting files to the web server
-for file in */*.html *.ps *.tar; do
+for file in */*.html *.ps *.pdf *.tar; do
   cat $DOCSDIR/$file | 
     sed -e '/^<meta name=generator/d' \
         -e '/^%DVIPSSource:/d' > file1


Index: index.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/onlinedocs/index.html,v
retrieving revision 1.71
diff -u -r1.71 index.html
--- index.html	29 Sep 2005 01:43:58 -0000	1.71
+++ index.html	30 Sep 2005 22:05:08 -0000
@@ -20,44 +20,51 @@
   <ul>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcc/";>GCC
          4.0.2 Manual</a> (<a
-         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcc.ps.gz";>also
-         in PostScript</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcc.pdf";>also
+         in PDF</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcc.ps.gz";>PostScript</a> or <a
          href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcc-html.tar.gz";>an
          HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gfortran/";>GCC
          4.0.2 GFORTRAN Manual</a> (<a
-         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gfortran.ps.gz";>also
-         in PostScript</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gfortran.pdf";>also
+         in PDF</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gfortran.ps.gz";>PostScript</a> or <a
          href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gfortran-html.tar.gz";>an
          HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcj/";>GCC
          4.0.2 GCJ Manual</a> (<a
-         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcj.ps.gz";>also
-         in PostScript</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcj.pdf";>also
+         in PDF</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcj.ps.gz";>PostScript</a> or <a
          href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcj-html.tar.gz";>an
          HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/cpp/";>GCC 
          4.0.2 CPP Manual</a> (<a
-         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/cpp.ps.gz";>also
-         in PostScript</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/cpp.pdf";>also
+         in PDF</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/cpp.ps.gz";>PostScript</a> or <a
          href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/cpp-html.tar.gz";>an
          HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gnat_rm/";>GCC
          4.0.2 GNAT Reference Manual</a> (<a
-         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gnat_rm.ps.gz";>also
-         in PostScript</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gnat_rm.pdf";>also
+         in PDF</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gnat_rm.ps.gz";>PostScript</a> or <a
          href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gnat_rm-html.tar.gz";>an
          HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gnat_ugn_unw/";>GCC
          4.0.2 GNAT User's Guide</a> (<a
-         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gnat_ugn_unw.ps.gz";>also
-         in PostScript</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gnat_ugn_unw.pdf";>also
+         in PDF</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gnat_ugn_unw.ps.gz";>PostScript</a> or <a
          href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gnat_ugn_unw-html.tar.gz";>an
          HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/fastjar/";>GCC
          4.0.2 GNU JAR Manual</a> (<a
-         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/fastjar.ps.gz";>also
-         in PostScript</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/fastjar.pdf";>also
+         in PDF</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/fastjar.ps.gz";>PostScript</a> or <a
          href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/fastjar-html.tar.gz";>an
          HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-4.0.2/docs-sources.tar.gz";>Texinfo
@@ -68,44 +75,51 @@
   <ul>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc/";>GCC
          3.4.4 Manual</a> (<a
-         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc.ps.gz";>also
-         in PostScript</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc.pdf";>also
+         in PDF</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc.ps.gz";>PostScript</a> or <a
          href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc-html.tar.gz";>an
          HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/g77/";>GCC
          3.4.4 G77 Manual</a> (<a
-         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/g77.ps.gz";>also
-         in PostScript</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/g77.pdf";>also
+         in PDF</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/g77.ps.gz";>PostScript</a> or <a
          href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/g77-html.tar.gz";>an
          HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcj/";>GCC
          3.4.4 GCJ Manual</a> (<a
-         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcj.ps.gz";>also
-         in PostScript</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcj.pdf";>also
+         in PDF</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcj.ps.gz";>PostScript</a> or <a
          href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcj-html.tar.gz";>an
          HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/cpp/";>GCC 
          3.4.4 CPP Manual</a> (<a
-         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/cpp.ps.gz";>also
-         in PostScript</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/cpp.pdf";>also
+         in PDF</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/cpp.ps.gz";>PostScript</a> or <a
          href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/cpp-html.tar.gz";>an
          HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gnat_rm/";>GCC
          3.4.4 GNAT Reference Manual</a> (<a
-         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gnat_rm.ps.gz";>also
-         in PostScript</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gnat_rm.pdf";>also
+         in PDF</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gnat_rm.ps.gz";>PostScript</a> or <a
          href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gnat_rm-html.tar.gz";>an
          HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gnat_ugn_unw/";>GCC
          3.4.4 GNAT User's Guide</a> (<a
-         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gnat_ugn_unw.ps.gz";>also
-         in PostScript</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gnat_ugn_unw.pdf";>also
+         in PDF</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gnat_ugn_unw.ps.gz";>PostScript</a> or <a
          href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gnat_ugn_unw-html.tar.gz";>an
          HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/fastjar/";>GCC
          3.4.4 GNU JAR Manual</a> (<a
-         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/fastjar.ps.gz";>also
-         in PostScript</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/fastjar.pdf";>also
+         in PDF</a> or <a
+         href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/fastjar.ps.gz";>PostScript</a> or <a
          href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/fastjar-html.tar.gz";>an
          HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/docs-sources.tar.gz";>Texinfo
@@ -288,40 +302,47 @@
   <ul>
     <li><a href="http://gcc.gnu.org/install/";>GCC Installation Instructions</a></li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcc/";>GCC Manual</a> (<a
-           href="http://gcc.gnu.org/onlinedocs/gcc.ps.gz";>also in
-           PostScript</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/gcc.pdf";>also in
+           PDF</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/gcc.ps.gz";>PostScript</a> or <a
            href="http://gcc.gnu.org/onlinedocs/gcc-html.tar.gz";>an
            HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gfortran/";>GNU Fortran
            95 Manual</a> (<a
-           href="http://gcc.gnu.org/onlinedocs/gfortran.ps.gz";>also in
-           PostScript</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/gfortran.pdf";>also in
+           PDF</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/gfortran.ps.gz";>PostScript</a> or <a
            href="http://gcc.gnu.org/onlinedocs/gfortran-html.tar.gz";>an
            HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gcj/";>GCJ Manual</a> (<a
-           href="http://gcc.gnu.org/onlinedocs/gcj.ps.gz";>also in
-           PostScript</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/gcj.pdf";>also in
+           PDF</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/gcj.ps.gz";>PostScript</a> or <a
            href="http://gcc.gnu.org/onlinedocs/gcj-html.tar.gz";>an
            HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/cpp/";>CPP Manual</a> (<a
-           href="http://gcc.gnu.org/onlinedocs/cpp.ps.gz";>also in
-           PostScript</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/cpp.pdf";>also in
+           PDF</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/cpp.ps.gz";>PostScript</a> or <a
            href="http://gcc.gnu.org/onlinedocs/cpp-html.tar.gz";>an
            HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gnat_rm/";>GNAT Reference Manual</a> (<a
-           href="http://gcc.gnu.org/onlinedocs/gnat_rm.ps.gz";>also in
-           PostScript</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/gnat_rm.pdf";>also in
+           PDF</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/gnat_rm.ps.gz";>PostScript</a> or <a
            href="http://gcc.gnu.org/onlinedocs/gnat_rm-html.tar.gz";>an
            HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/";>GNAT User's Guide
            for Native Platforms / Unix and Windows</a> (<a
-           href="http://gcc.gnu.org/onlinedocs/gnat_ugn_unw.ps.gz";>also in
-           PostScript</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/gnat_ugn_unw.pdf";>also in
+           PDF</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/gnat_ugn_unw.ps.gz";>PostScript</a> or <a
            href="http://gcc.gnu.org/onlinedocs/gnat_ugn_unw-html.tar.gz";>an
            HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/fastjar/";>GNU jar utilities manual</a> (<a
-           href="http://gcc.gnu.org/onlinedocs/fastjar.ps.gz";>also in
-           PostScript</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/fastjar.pdf";>also in
+           PDF</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/fastjar.ps.gz";>PostScript</a> or <a
            href="http://gcc.gnu.org/onlinedocs/fastjar-html.tar.gz";>an
            HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/libstdc++/documentation.html";>libstdc++-v3 Documentation</a></li>
@@ -332,32 +353,37 @@
   <li>Internals Documentation
   <ul>
     <li><a href="http://gcc.gnu.org/onlinedocs/gccint/";>GCC Internals Manual</a> (<a
-           href="http://gcc.gnu.org/onlinedocs/gccint.ps.gz";>also in
-           PostScript</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/gccint.pdf";>also in
+           PDF</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/gccint.ps.gz";>PostScript</a> or <a
            href="http://gcc.gnu.org/onlinedocs/gccint-html.tar.gz";>an
            HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/cppinternals/";>CPP
            Internals Manual</a> (<a
-           href="http://gcc.gnu.org/onlinedocs/cppinternals.ps.gz";>also in
-           PostScript</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/cppinternals.pdf";>also in
+           PDF</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/cppinternals.ps.gz";>PostScript</a> or <a
            href="http://gcc.gnu.org/onlinedocs/cppinternals-html.tar.gz";>an
            HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/gnat-style/";>GNAT
            Coding Style Manual</a> (<a
-           href="http://gcc.gnu.org/onlinedocs/gnat-style.ps.gz";>also in
-           PostScript</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/gnat-style.pdf";>also in
+           PDF</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/gnat-style.ps.gz";>PostScript</a> or <a
            href="http://gcc.gnu.org/onlinedocs/gnat-style-html.tar.gz";>an
            HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/porting/";>libstdc++-v3
            Porting Manual</a> (<a
-           href="http://gcc.gnu.org/onlinedocs/porting.ps.gz";>also in
-           PostScript</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/porting.pdf";>also in
+           PDF</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/porting.ps.gz";>PostScript</a> or <a
            href="http://gcc.gnu.org/onlinedocs/porting-html.tar.gz";>an
            HTML tarball</a>)</li>
     <li><a href="http://gcc.gnu.org/onlinedocs/libiberty/";>Libiberty
            Manual</a> (<a
-           href="http://gcc.gnu.org/onlinedocs/libiberty.ps.gz";>also in
-           PostScript</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/libiberty.pdf";>also in
+           PDF</a> or <a
+           href="http://gcc.gnu.org/onlinedocs/libiberty.ps.gz";>PostScript</a> or <a
            href="http://gcc.gnu.org/onlinedocs/libiberty-html.tar.gz";>an
            HTML tarball</a>)</li>
   </ul></li>


-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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