Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / doc / install.texi2html
blob60d670b47854ca102741908a79df5c5e55e9f2e5
1 #!/bin/sh
3 # Convert the GCC install documentation from texinfo format to HTML.
5 # $SOURCEDIR and $DESTDIR, resp., refer to the directory containing
6 # the texinfo source and the directory to put the HTML version in.
8 # (C) 2001, 2003, 2006 Free Software Foundation
9 # Originally by Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>, June 2001.
11 # This script is Free Software, and it can be copied, distributed and
12 # modified as defined in the GNU General Public License. A copy of
13 # its license can be downloaded from http://www.gnu.org/copyleft/gpl.html
15 set -e
17 SOURCEDIR=${SOURCEDIR-.}
18 DESTDIR=${DESTDIR-HTML}
20 MAKEINFO=${MAKEINFO-makeinfo}
22 if [ ! -d $DESTDIR ]; then
23 mkdir -p $DESTDIR
26 # Generate gcc-vers.texi.
28 echo "@set version-GCC $(cat $SOURCEDIR/../BASE-VER)"
29 if [ "$(cat $SOURCEDIR/../DEV-PHASE)" = "experimental" ]; then
30 echo "@set DEVELOPMENT"
31 else
32 echo "@clear DEVELOPMENT"
34 echo "@set srcdir $SOURCEDIR/.."
35 ) > $SOURCEDIR/include/gcc-vers.texi
37 for x in index.html specific.html prerequisites.html download.html configure.html \
38 build.html test.html finalinstall.html binaries.html old.html \
39 gfdl.html
41 define=`echo $x | sed -e 's/\.//g'`
42 echo "define = $define"
43 $MAKEINFO -I $SOURCEDIR -I $SOURCEDIR/include $SOURCEDIR/install.texi --html --no-split -D$define -o$DESTDIR/$x
44 done
46 rm $SOURCEDIR/include/gcc-vers.texi