tests: work around strangeness in MSYS
[automake.git] / tests / txinfo22.test
blob07f0573b51f6ab4d4c7681a41060bf10d72393c1
1 #! /bin/sh
2 # Copyright (C) 2003, 2004, 2007, 2008, 2010, 2011 Free Software
3 # Foundation, 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 cat > configure.in << END
26 AC_INIT([$me], [1.0])
27 AC_CONFIG_AUX_DIR([aux1])
28 AM_INIT_AUTOMAKE
29 AC_CONFIG_FILES([Makefile])
30 AC_OUTPUT
31 END
33 cat > Makefile.am << 'END'
34 TEXINFO_TEX = $(srcdir)/tex/texinfo.tex
35 info_TEXINFOS = main.texi
36 sure_it_exists:
37 test -f $(TEXINFO_TEX)
38 sure_it_is_not_distributed: distdir
39 test ! -f $(distdir)/tex/texinfo.tex
40 END
42 cat > main.texi << 'END'
43 \input texinfo
44 @setfilename main.info
45 @settitle main
46 @node Top
47 Hello walls.
48 @bye
49 END
51 mkdir aux1
52 mkdir tex
53 cp "$am_pkgvdatadir/texinfo.tex" tex
55 $ACLOCAL
56 $AUTOMAKE --add-missing
57 $AUTOCONF
59 test ! -f texinfo.tex
60 test ! -f aux1/texinfo.tex
61 test -f tex/texinfo.tex
63 ./configure
65 $MAKE sure_it_exists
66 $MAKE distcheck
67 $MAKE sure_it_is_not_distributed