docs: deprecate .log -> .html conversion by parallel-tests
[automake.git] / tests / txinfo22.test
blobc2f23e1763ee106bdd1bad4ea72d778c0547cbe3
1 #! /bin/sh
2 # Copyright (C) 2003, 2004, 2007, 2008, 2011 Free Software Foundation,
3 # Inc.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
8 # any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # Make sure the user can override TEXINFO_TEX.
19 # Also make sure TEXINFO_TEX is not distributed.
20 # Report from Tom Tromey.
22 required='makeinfo tex texi2dvi'
23 . ./defs || Exit 1
25 set -e
27 cat > configure.in << END
28 AC_INIT([$me], [1.0])
29 AC_CONFIG_AUX_DIR([aux1])
30 AM_INIT_AUTOMAKE
31 AC_CONFIG_FILES([Makefile])
32 AC_OUTPUT
33 END
35 cat > Makefile.am << 'END'
36 TEXINFO_TEX = $(srcdir)/tex/texinfo.tex
37 info_TEXINFOS = main.texi
38 sure_it_exists:
39 test -f $(TEXINFO_TEX)
40 sure_it_is_not_distributed: distdir
41 test ! -f $(distdir)/tex/texinfo.tex
42 END
44 cat > main.texi << 'END'
45 \input texinfo
46 @setfilename main.info
47 @settitle main
48 @node Top
49 Hello walls.
50 @bye
51 END
53 mkdir aux1
54 mkdir tex
55 cp "$testsrcdir/../lib/texinfo.tex" tex
57 $ACLOCAL
58 $AUTOMAKE --add-missing
59 $AUTOCONF
61 test ! -f texinfo.tex
62 test ! -f aux1/texinfo.tex
63 test -f tex/texinfo.tex
65 ./configure
67 $MAKE sure_it_exists
68 $MAKE distcheck
69 $MAKE sure_it_is_not_distributed