* configure.in: Bump version to 1.7.2c.
[automake.git] / tests / vtexi.test
blobc6328e6a60482cb36643828d820b2e6292a5388a
1 #!/bin/sh
2 # Copyright (C) 1996, 1997, 2000, 2001, 2002 Free Software Foundation, Inc.
4 # This file is part of GNU Automake.
6 # GNU Automake is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
11 # GNU Automake is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with autoconf; see the file COPYING. If not, write to
18 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 # Boston, MA 02111-1307, USA.
21 . ./defs || exit 1
23 cat > Makefile.am << 'END'
24 info_TEXINFOS = textutils.texi
25 END
27 cat > textutils.texi << 'END'
28 @include version.texi
29 @setfilename textutils.info
30 END
32 # Required when using Texinfo.
33 : > mdate-sh
34 : > texinfo.tex
36 set -e
38 $ACLOCAL || exit 1
39 $AUTOMAKE
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 `textutils.info: version.texi')
49 grep '^textutils\.info:.*version\.texi$' Makefile.in
52 # Test for bug reported by Lars Hecking:
53 # When running the first version of configure.ac aware automake,
54 # @CONFIGURE_AC@ was not properly substitued.
56 $EGREP '^stamp-vti:.*textutils\.texi( .*)?$' Makefile.in
57 $EGREP '^stamp-vti:.*\$\(top_srcdir\)/configure( .*)?$' Makefile.in
60 # Check that the path to mdate-sh is correct. Over escaping of `$'
61 # etc. once led to `\$\(srcdir\)/mdate-sh'.
63 # Filter out '$(srcdir)/mdate-sh'; output occurrences of `SOMETHING/mdate-sh'
64 sed -n 's,\$(srcdir)/mdate-sh,,g;s,.* \([^ ]*/mdate-sh\) .*,\1,gp' Makefile.in|
65 # There must remain nothing.
66 grep . && exit 1
68 exit 0