typo + new comment
[automake.git] / tests / texinfo8.test
blob60aff2b470f95389b58e24da6b3a08e06bd601de
1 #! /bin/sh
3 # Test to make sure texinfo.tex is correctly installed and disted by
4 # -a when we're using AC_CONFIG_AUX_DIR. Bug report by by Per
5 # Cederqvist.
7 . $srcdir/defs || exit 1
9 cat > configure.in << 'END'
10 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
11 PACKAGE=nonesuch
12 VERSION=nonesuch
13 AC_ARG_PROGRAM
14 AC_PROG_MAKE_SET
15 AC_PROG_INSTALL
16 AC_OUTPUT(Makefile sub/Makefile)
17 AC_CONFIG_AUX_DIR(sub)
18 END
20 cat > Makefile.am << 'END'
21 info_TEXINFOS = textutils.texi
22 END
24 echo '@setfilename textutils.info' > textutils.texi
26 test -d sub || mkdir sub
28 cat > sub/Makefile.am << 'END'
29 magic:
30 @echo $(DISTFILES)
31 END
33 $AUTOMAKE -a || exit 1
35 fgrep -v @SET_MAKE@ sub/Makefile.in > sub/Makefile.sed
36 test -f sub/texinfo.tex &&
37 $MAKE -s -f sub/Makefile.sed SHELL=/bin/sh magic | grep 'texinfo\.tex'
38 stat=$?
40 exit $stat