Fix outdated reference to sh-utils in the manual.
[automake.git] / tests / txinfo28.test
blob1fd702be5fe3c99facd3df97c095e5496616ca54
1 #! /bin/sh
2 # Copyright (C) 2002, 2003, 2005 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)
7 # any later version.
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 # Check that info files are built in builddir when needed.
18 # Similar to txinfo24.test, but obfuscating filenames with variable references.
19 # Report from Ralf Corsepius.
21 required='makeinfo tex texi2dvi-o'
22 . ./defs || Exit 1
24 set -e
26 # This setting, when honored by GNU ls, used to cause an infinite loop
27 # in mdate-sh.
28 TIME_STYLE="+%Y-%m-%d %H:%M:%S"
29 export TIME_STYLE
31 echo AC_OUTPUT >> configure.in
33 cat > Makefile.am << 'END'
34 MA = ma
35 IN = in
36 PROJ = $(MA)$(IN)
37 include fragment.mk
38 info_TEXINFOS = ma$(IN).texi
39 END
41 echo 'CLEANFILES = $(PROJ).info' > fragment.mk
43 cat > main.texi << 'END'
44 \input texinfo
45 @setfilename main.info
46 @settitle main
47 @node Top
48 Hello walls.
49 @include version.texi
50 @bye
51 END
53 $ACLOCAL
54 $AUTOMAKE --add-missing
55 $AUTOCONF
57 mkdir build
58 cd build
59 ../configure
60 $MAKE
61 test -f main.info
63 cd ..
64 rm -rf build
65 ./configure
66 $MAKE
67 test -f main.info
69 # Make sure stamp-vti is older that version.texi.
70 # (A common situation in a real tree.)
71 test -f stamp-vti
72 test -f version.texi
73 $sleep
74 touch stamp-vti
76 $MAKE distclean
77 test -f stamp-vti
78 test -f version.texi
80 mkdir build
81 cd build
82 ../configure
83 $MAKE
84 # main.info should be rebuilt in the current directory
85 test -f main.info
86 test ! -f ../main.info
87 $MAKE dvi
88 test -f main.dvi
90 $MAKE distcheck