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 # Copyright (C) 2001-2023 Free Software Foundation, Inc.
9 # Originally by Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>, June 2001.
11 # This file is part of GCC.
13 # GCC is free software; you can redistribute it and/or modify it under
14 # the terms of the GNU General Public License as published by the Free
15 # Software Foundation; either version 3, or (at your option) any later
18 # GCC is distributed in the hope that it will be useful, but WITHOUT ANY
19 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23 # You should have received a copy of the GNU General Public License
24 # along with GCC; see the file COPYING3. If not see
25 # <http://www.gnu.org/licenses/>.
29 SOURCEDIR
=${SOURCEDIR-.}
30 DESTDIR
=${DESTDIR-HTML}
32 MAKEINFO
=${MAKEINFO-makeinfo}
34 if [ ! -d $DESTDIR ]; then
38 # Generate gcc-vers.texi.
40 echo "@set version-GCC $(cat $SOURCEDIR/../BASE-VER)"
41 if [ "$(cat $SOURCEDIR/../DEV-PHASE)" = "experimental" ]; then
42 echo "@set DEVELOPMENT"
44 echo "@clear DEVELOPMENT"
46 echo "@set srcdir $SOURCEDIR/.."
47 ) > $DESTDIR/gcc-vers.texi
49 for x
in index.html specific.html prerequisites.html download.html \
50 configure.html build.html
test.html finalinstall.html \
51 binaries.html gfdl.html
53 define
=`echo $x | sed -e 's/\.//g'`
54 echo "define = $define"
55 $MAKEINFO --no-number-sections -I $SOURCEDIR -I $SOURCEDIR/include
-I $DESTDIR $SOURCEDIR/install.texi
--html --no-split -D$define -o$DESTDIR/temp.html
56 # Use sed to work around makeinfo 4.7 brokenness.
57 sed -e 's/_002d/-/g' -e 's/_002a/*/g' $DESTDIR/temp.html
> $DESTDIR/$x
61 rm $DESTDIR/gcc-vers.texi