* lib/config-ml.in, lib/config.guess, lib/config.sub,
[automake.git] / tests / vtexi.test
blob03d42cf8a32423124fc2d37798456437a174b663
1 #!/bin/sh
2 # Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003
3 # Free Software Foundation, Inc.
5 # This file is part of GNU Automake.
7 # GNU Automake is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
12 # GNU Automake is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with Automake; see the file COPYING. If not, write to
19 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 # Boston, MA 02111-1307, USA.
22 . ./defs || exit 1
24 cat > Makefile.am << 'END'
25 info_TEXINFOS = textutils.texi
26 END
28 cat > textutils.texi << 'END'
29 @include version.texi
30 @setfilename textutils.info
31 END
33 # Required when using Texinfo.
34 : > mdate-sh
35 : > texinfo.tex
37 set -e
39 $ACLOCAL || exit 1
40 $AUTOMAKE
42 # Test for bug reported by Jim Meyering:
43 # When I ran automake-0.29 on textutils,
44 # I noticed that doc/Makefile.in had
45 # textutils.info: textutils.texi
46 # instead of
47 # textutils.info: textutils.texi version.texi
48 # (Today this should be `textutils.info: version.texi')
50 grep 'textutils\.info:.*version\.texi$' Makefile.in
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.
57 $EGREP 'stamp-vti:.*textutils\.texi( .*)?$' Makefile.in
58 $EGREP 'stamp-vti:.*\$\(top_srcdir\)/configure( .*)?$' Makefile.in
61 # Check that the path to mdate-sh is correct. Over escaping of `$'
62 # etc. once led to `\$\(srcdir\)/mdate-sh'.
64 # Filter out '$(srcdir)/mdate-sh'; output occurrences of `SOMETHING/mdate-sh'
65 sed -n 's,\$(srcdir)/mdate-sh,,g;s,.* \([^ ]*/mdate-sh\) .*,\1,gp' Makefile.in|
66 # There must remain nothing.
67 grep . && exit 1
69 exit 0