doc: typos in test file.
[automake.git] / t / txinfo19.sh
blob87ec7aa6079291ab2e48a90fc6154f1db049f46f
1 #! /bin/sh
2 # Copyright (C) 2003-2024 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 <https://www.gnu.org/licenses/>.
17 # Test support for DJGPP's .iNN info files.
19 required=makeinfo
20 . test-init.sh
22 echo AC_OUTPUT >> configure.ac
24 cat > Makefile.am << 'END'
25 info_TEXINFOS = main.texi
26 END
28 cat > main.texi << 'END'
29 \input texinfo
30 @setfilename main.info
31 @settitle main
32 @node Top
33 Hello walls.
34 @bye
35 END
37 $ACLOCAL
38 $AUTOMAKE --add-missing
39 $AUTOCONF
41 ./configure "--infodir=$(pwd)/_inst"
42 $MAKE
44 # Make sure .iNN files are installed.
45 : > main.i1
46 : > main.i21
47 $MAKE install
48 test -f _inst/main.i1
49 test -f _inst/main.i21
51 # They should be uninstalled too.
52 $MAKE uninstall
53 test ! -e _inst/main.i1
54 test ! -e _inst/main.i21
56 # Make sure rebuild rules erase old .iNN files when they run makeinfo.
57 $sleep
58 touch main.texi
59 test -f main.i1
60 test -f main.i21
61 $MAKE
62 test ! -e main.i1
63 test ! -e main.i21
65 # Finally, we also want them erased by maintainer-clean.
66 : > main.i7
67 : > main.i39
68 $MAKE maintainer-clean
69 test ! -e main.i7
70 test ! -e main.i39