2 # Copyright (C) 2009-2012 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # If $(infodir) is the empty string, then nothing should be installed there.
18 # Likewise for the other install-* targets used for texinfo files.
20 required='makeinfo tex texi2dvi'
24 || skip_ "dvips is missing"
25 pdfetex --version || pdftex --version \
26 || skip_ "pdeftex and pdftex are both missing"
28 cat >>configure.ac <<'END'
32 cat >Makefile.am <<'END'
33 info_TEXINFOS = foo.texi
36 cat >foo.texi << 'END'
48 $AUTOMAKE --add-missing
50 cwd=$(pwd) || fatal_ "getting current working directory"
55 ../configure --prefix="$instdir"
56 $MAKE all dvi ps pdf html
59 infodir= htmldir= dvidir= psdir= pdfdir=
60 export infodir htmldir dvidir psdir pdfdir
62 $MAKE -e install install-html install-dvi install-ps install-pdf
64 $MAKE -e install install-html install-dvi install-ps install-pdf \
68 $MAKE -e uninstall > stdout || { cat stdout; exit 1; }
70 grep 'rm -f' stdout && exit 1
71 $MAKE -e uninstall DESTDIR="$destdir"