source: trunk/essentials/sys-devel/automake-1.8/tests/txinfo21.test

Last change on this file was 3118, checked in by bird, 18 years ago

automake 1.8.5

File size: 2.1 KB
Line 
1#! /bin/sh
2# Copyright (C) 2003 Free Software Foundation, Inc.
3#
4# This file is part of GNU Automake.
5#
6# GNU Automake is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2, or (at your option)
9# any later version.
10#
11# GNU Automake is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with Automake; see the file COPYING. If not, write to
18# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19# Boston, MA 02111-1307, USA.
20
21# Test support for building HTML documentation.
22
23required='makeinfo-html tex'
24. ./defs || exit 1
25
26set -e
27
28cat >>configure.in <<EOF
29AC_CONFIG_FILES([rec/Makefile])
30AC_OUTPUT
31EOF
32
33cat > Makefile.am << 'END'
34SUBDIRS = rec
35info_TEXINFOS = main.texi sub/main.texi
36END
37
38cat > main.texi << 'END'
39\input texinfo
40@setfilename main.info
41@settitle main
42@node Top
43Hello walls.
44@bye
45END
46
47mkdir sub
48mkdir rec
49cp main.texi sub/main.texi
50cp main.texi rec/main.texi
51
52cat > rec/Makefile.am << 'END'
53info_TEXINFOS = main.texi
54END
55
56$ACLOCAL
57$AUTOMAKE --add-missing
58$AUTOCONF
59
60./configure
61
62$MAKE
63
64# Test production of split-per-node HTML.
65$MAKE html
66test -d main.html
67test -d sub/main.html
68test -d rec/main.html
69$MAKE clean
70test ! -d main.html
71test ! -d sub/main.html
72test ! -d rec/main.html
73
74# Test production of a single HTML file.
75MAKEINFOFLAGS=--no-split $MAKE -e html
76test -f main.html
77test -f sub/main.html
78test -f rec/main.html
79$MAKE clean
80test ! -f main.html
81test ! -f sub/main.html
82test ! -f rec/main.html
83
84# Make sure AM_MAKEINFOHTMLFLAGS is supported, and override AM_MAKEINFO.
85cat >>Makefile.am <<\EOF
86AM_MAKEINFOHTMLFLAGS=--no-split
87AM_MAKEINFOFLAGS=--unsupported-option
88EOF
89$AUTOMAKE
90./configure
91$MAKE html
92test -f main.html
93test -f sub/main.html
94test -d rec/main.html
95$MAKE clean
96test ! -f main.html
97test ! -f sub/main.html
98test ! -d rec/main.html
Note: See TracBrowser for help on using the repository browser.