Merge branch 'msvc' into maint
[platform/upstream/automake.git] / tests / txinfo33.test
1 #! /bin/sh
2 # Copyright (C) 2003, 2009  Free Software Foundation, Inc.
3 #
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)
7 # any later version.
8 #
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.
13 #
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/>.
16
17 # DVIS, PDFS, PSS, HTMLS should not be cleaned upon `mostlyclean'.
18 # Similar to txinfo25.test.
19
20 required='makeinfo tex texi2dvi-o dvips'
21 . ./defs || Exit 1
22
23 set -e
24
25 mkdir sub
26
27 cat >> configure.in << 'END'
28 AC_OUTPUT
29 END
30
31 cat > Makefile.am << 'END'
32 info_TEXINFOS = main.texi other.texi sub/another.texi
33 END
34
35 cat > main.texi << 'END'
36 \input texinfo
37 @setfilename main.info
38 @settitle main
39 @node Top
40 Hello walls.
41 @include version.texi
42 @bye
43 END
44
45 cat > other.texi << 'END'
46 \input texinfo
47 @setfilename other.info
48 @settitle other
49 @node Top
50 Hello walls.
51 @include version2.texi
52 @bye
53 END
54
55 cat > sub/another.texi << 'END'
56 \input texinfo
57 @setfilename another.info
58 @settitle another
59 @node Top
60 Hello walls.
61 @include version3.texi
62 @bye
63 END
64
65 $ACLOCAL
66 $AUTOMAKE --add-missing
67 $AUTOCONF
68
69 # In-tree build.
70 ./configure
71 $MAKE dvi ps pdf html
72
73 test -f main.dvi
74 test -f main.ps
75 test -f main.html || test -d main.html
76 test -f main.pdf
77 test -f other.pdf
78 test -f sub/another.pdf
79
80 test -f other.dvi
81 test -f other.html || test -d other.html
82 test -f other.ps
83 test -f sub/another.dvi
84 test -f sub/another.html || test -d sub/another.html
85 test -f sub/another.ps
86
87 $MAKE mostlyclean
88
89 ls *.aux && Exit 1
90 ls sub/*.aux && Exit 1
91
92 test -f main.dvi
93 test -f main.ps
94 test -f main.html || test -d main.html
95 test -f main.pdf
96 test -f other.pdf
97 test -f sub/another.pdf
98
99 test -f other.dvi
100 test -f other.html || test -d other.html
101 test -f other.ps
102 test -f sub/another.dvi
103 test -f sub/another.html || test -d sub/another.html
104 test -f sub/another.ps
105
106 $MAKE clean
107
108 test ! -f main.dvi
109 test ! -f main.ps
110 test ! -f main.html && test ! -d main.html
111 test ! -f main.pdf
112 test ! -f other.pdf
113 test ! -f sub/another.pdf
114 test ! -f sub/yetanother.pdf
115
116 test ! -f other.dvi
117 test ! -f other.html && test ! -d other.html
118 test ! -f other.ps
119 test ! -f sub/another.dvi
120 test ! -f sub/another.html && test ! -d sub/another.html
121 test ! -f sub/another.ps
122
123 ./configure
124 $MAKE
125
126 $MAKE distcheck
127
128 :