Commit 6a82a28a by Joseph Myers Committed by Joseph Myers

re PR other/23693 (Manuals in the Portable Document Format (PDF))

	PR other/23693
	* update_web_docs: Add PDF support.  Correct check of DEV-PHASE.

From-SVN: r104837
parent 78a5d727
2005-09-30 Joseph S. Myers <joseph@codesourcery.com> 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. * update_web_docs_old: Remove.
2005-08-14 Kelley Cook <kcook@gcc.gnu.org> 2005-08-14 Kelley Cook <kcook@gcc.gnu.org>
......
...@@ -110,26 +110,27 @@ fi ...@@ -110,26 +110,27 @@ fi
# Generate gcc-vers.texi. # Generate gcc-vers.texi.
( (
echo "@set version-GCC $(cat gcc/gcc/BASE-VER)" 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" echo "@set DEVELOPMENT"
else else
echo "@clear DEVELOPMENT" echo "@clear DEVELOPMENT"
fi fi
) > $includedir/gcc-vers.texi ) > $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 for file in $MANUALS; do
filename=`find . -name ${file}.texi` filename=`find . -name ${file}.texi`
if [ "${filename}" ]; then if [ "${filename}" ]; then
makeinfo --html -I ${includedir} -I `dirname ${filename}` ${filename} makeinfo --html -I ${includedir} -I `dirname ${filename}` ${filename}
tar cf ${file}-html.tar ${file}/*.html tar cf ${file}-html.tar ${file}/*.html
texi2dvi -I ${includedir} ${filename} </dev/null && dvips -o ${file}.ps ${file}.dvi texi2dvi -I ${includedir} ${filename} </dev/null && dvips -o ${file}.ps ${file}.dvi
texi2pdf -I ${includedir} ${filename} </dev/null
mkdir -p $DOCSDIR/$file mkdir -p $DOCSDIR/$file
fi fi
done done
# Then build a gzipped copy of each of the resulting .html, .ps and .tar files # 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 cat $file | gzip --best > $file.gz
done done
...@@ -144,7 +145,7 @@ if test $today = 15; then ...@@ -144,7 +145,7 @@ if test $today = 15; then
fi fi
# And copy the resulting files to the web server # 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 | cat $DOCSDIR/$file |
sed -e '/^<meta name=generator/d' \ sed -e '/^<meta name=generator/d' \
-e '/^%DVIPSSource:/d' > file1 -e '/^%DVIPSSource:/d' > file1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment