Merge branch 'minor'
[automake.git] / t / txinfo-vtexi.sh
blob7d8ff77f9b2fd552aa05996281c4ac66793ae9fd
1 #!/bin/sh
2 # Copyright (C) 1996-2017 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 # Basic checks and some regressions testing on 'version.texi'
18 # support for texinfo files.
20 . test-init.sh
22 cat > Makefile.am << 'END'
23 info_TEXINFOS = textutils.texi
24 END
26 cat > textutils.texi << 'END'
27 @include version.texi
28 @setfilename textutils.info
29 END
31 # Required when using Texinfo.
32 : > mdate-sh
33 : > texinfo.tex
35 $ACLOCAL
36 $AUTOMAKE
38 # Test for bug reported by Jim Meyering:
39 # When I ran automake-0.29 on textutils,
40 # I noticed that doc/Makefile.in had
41 # textutils.info: textutils.texi
42 # instead of
43 # textutils.info: textutils.texi version.texi
44 # Today this should be:
45 # $(srcdir)/textutils.info: $(srcdir)/version.texi
46 # or:
47 # $(srcdir)/textutils.info: version.texi
48 grep '^\$(srcdir)/textutils\.info:.*[ /]version\.texi *$' Makefile.in
50 # Test for bug reported by Lars Hecking:
51 # When running the first version of configure.ac aware automake,
52 # @CONFIGURE_AC@ was not properly substituted.
53 $EGREP 'stamp-vti:.*textutils\.texi( .*)?$' Makefile.in
54 $EGREP 'stamp-vti:.*\$\(top_srcdir\)/configure( .*)?$' Makefile.in
56 # Check that the path to mdate-sh is correct. Over escaping of '$'
57 # etc. once led to '\$\(srcdir\)/mdate-sh'.
58 # Filter out '$(srcdir)/mdate-sh'; there should be no occurrences
59 # of '.../mdate-sh' left then.
60 sed 's,\$(srcdir)/mdate-sh,,g' Makefile.in | grep '/mdate-sh' && exit 1