cdda5cb9a72e69435c8d02bc6c99f0e476f19ba2
[platform/upstream/automake.git] / tests / vtexi.test
1 #!/bin/sh
2
3 . $srcdir/defs || exit 1
4
5 cat > Makefile.am << 'END'
6 info_TEXINFOS = textutils.texi
7 END
8
9 cat > textutils.texi << 'END'
10 @include version.texi
11 @setfilename textutils.info
12 END
13
14 # Required when using Texinfo.
15 : > mdate-sh
16 : > texinfo.tex
17
18 set -e
19
20 $ACLOCAL || exit 1
21 $AUTOMAKE
22
23 # Test for bug reported by Jim Meyering:
24 # When I ran automake-0.29 on textutils,
25 # I noticed that doc/Makefile.in had
26 #   textutils.info: textutils.texi
27 # instead of
28 #   textutils.info: textutils.texi version.texi
29 # (Today this should be `textutils.info: version.texi')
30
31 grep '^textutils\.info:.*version\.texi$' Makefile.in
32
33
34 # Test for bug reported by Lars Hecking:
35 # When running the first version of configure.ac aware automake,
36 # @CONFIGURE_AC@ was not properly substitued.
37
38 $EGREP '^stamp-vti:.*textutils\.texi( .*)?$' Makefile.in
39 $EGREP '^stamp-vti:.*\$\(top_srcdir\)/configure\.in( .*)?$' Makefile.in
40
41
42 # Check that the path to mdate-sh is correct.  Over escaping of `$'
43 # etc. once led to `\$\(srcdir\)/mdate-sh'.
44
45 # Filter out '$(srcdir)/mdate-sh'; output occurrences of `SOMETHING/mdate-sh'
46 sed -n 's,\$(srcdir)/mdate-sh,,g;s,.* \([^ ]*/mdate-sh\) .*,\1,gp' Makefile.in|
47 # There must remain nothing.
48  grep . && exit 1
49
50 exit 0