Skip to content
Snippets Groups Projects
Commit 36813f7d authored by jsm28's avatar jsm28
Browse files

PR other/23693

	* update_web_docs: Add PDF support.  Correct check of DEV-PHASE.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104837 138bc75d-0d04-0410-961f-82ee72b054a4
parent 6cffc037
No related branches found
No related tags found
No related merge requests found
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> 2005-09-30 Joseph S. Myers <joseph@codesourcery.com>
* update_web_docs_old: Remove. * update_web_docs_old: Remove.
......
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment