Merge branch 'msvc' into maint
[platform/upstream/automake.git] / tests / vtexi.test
1 #!/bin/sh
2 # Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2011 Free Software
3 # Foundation, Inc.
4 #
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.
9 #
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.
14 #
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/>.
17
18 # Basic checks and some regressions testing on `version.texi'
19 # support for texinfo files.
20
21 . ./defs || Exit 1
22
23 set -e
24
25 cat > Makefile.am << 'END'
26 info_TEXINFOS = textutils.texi
27 END
28
29 cat > textutils.texi << 'END'
30 @include version.texi
31 @setfilename textutils.info
32 END
33
34 # Required when using Texinfo.
35 : > mdate-sh
36 : > texinfo.tex
37
38 $ACLOCAL
39 $AUTOMAKE
40
41 # Test for bug reported by Jim Meyering:
42 # When I ran automake-0.29 on textutils,
43 # I noticed that doc/Makefile.in had
44 #   textutils.info: textutils.texi
45 # instead of
46 #   textutils.info: textutils.texi version.texi
47 # Today this should be:
48 #   $(srcdir)/textutils.info: $(srcdir)/version.texi
49 # or:
50 #   $(srcdir)/textutils.info: version.texi
51 grep '^\$(srcdir)/textutils\.info:.*[ /]version\.texi *$' Makefile.in
52
53 # Test for bug reported by Lars Hecking:
54 # When running the first version of configure.ac aware automake,
55 # @CONFIGURE_AC@ was not properly substituted.
56 $EGREP 'stamp-vti:.*textutils\.texi( .*)?$' Makefile.in
57 $EGREP 'stamp-vti:.*\$\(top_srcdir\)/configure( .*)?$' Makefile.in
58
59 # Check that the path to mdate-sh is correct.  Over escaping of `$'
60 # etc. once led to `\$\(srcdir\)/mdate-sh'.
61 # Filter out '$(srcdir)/mdate-sh'; there should be no occurrences
62 # of `.../mdate-sh' left then.
63 sed 's,\$(srcdir)/mdate-sh,,g' Makefile.in | grep '/mdate-sh' && Exit 1
64
65 :