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
This commit is contained in:
Joseph Myers 2005-09-30 23:06:07 +01:00 committed by Joseph Myers
parent 78a5d7279e
commit 6a82a28a50
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,8 @@
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.

View file

@ -110,26 +110,27 @@ fi
# 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 @@ if test $today = 15; then
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