Clarify overriding of `*_DEPENDENCIES' in LIBOBJS node.
[automake/ericb.git] / tests / vtexi.test
blob2e43563d186d821ac738b627508f4b225d4f0be5
1 #!/bin/sh
2 # Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003
3 # Free Software 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 3, 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 . ./defs || Exit 1
20 cat > Makefile.am << 'END'
21 info_TEXINFOS = textutils.texi
22 END
24 cat > textutils.texi << 'END'
25 @include version.texi
26 @setfilename textutils.info
27 END
29 # Required when using Texinfo.
30 : > mdate-sh
31 : > texinfo.tex
33 set -e
35 $ACLOCAL || Exit 1
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 `textutils.info: version.texi')
46 grep 'textutils\.info:.*version\.texi$' Makefile.in
49 # Test for bug reported by Lars Hecking:
50 # When running the first version of configure.ac aware automake,
51 # @CONFIGURE_AC@ was not properly substituted.
53 $EGREP 'stamp-vti:.*textutils\.texi( .*)?$' Makefile.in
54 $EGREP 'stamp-vti:.*\$\(top_srcdir\)/configure( .*)?$' Makefile.in
57 # Check that the path to mdate-sh is correct. Over escaping of `$'
58 # etc. once led to `\$\(srcdir\)/mdate-sh'.
60 # Filter out '$(srcdir)/mdate-sh'; output occurrences of `SOMETHING/mdate-sh'
61 sed -n 's,\$(srcdir)/mdate-sh,,g;s,.* \([^ ]*/mdate-sh\) .*,\1,gp' Makefile.in|
62 # There must remain nothing.
63 grep . && Exit 1
65 Exit 0