1 | #!/bin/sh
|
---|
2 | # Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003
|
---|
3 | # Free Software Foundation, Inc.
|
---|
4 | #
|
---|
5 | # This file is part of GNU Automake.
|
---|
6 | #
|
---|
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.
|
---|
11 | #
|
---|
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.
|
---|
16 | #
|
---|
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., 51 Franklin Street, Fifth Floor,
|
---|
20 | # Boston, MA 02110-1301, USA.
|
---|
21 |
|
---|
22 | . ./defs || exit 1
|
---|
23 |
|
---|
24 | cat > Makefile.am << 'END'
|
---|
25 | info_TEXINFOS = textutils.texi
|
---|
26 | END
|
---|
27 |
|
---|
28 | cat > textutils.texi << 'END'
|
---|
29 | @include version.texi
|
---|
30 | @setfilename textutils.info
|
---|
31 | END
|
---|
32 |
|
---|
33 | # Required when using Texinfo.
|
---|
34 | : > mdate-sh
|
---|
35 | : > texinfo.tex
|
---|
36 |
|
---|
37 | set -e
|
---|
38 |
|
---|
39 | $ACLOCAL || exit 1
|
---|
40 | $AUTOMAKE
|
---|
41 |
|
---|
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')
|
---|
49 |
|
---|
50 | grep 'textutils\.info:.*version\.texi$' Makefile.in
|
---|
51 |
|
---|
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 |
|
---|
57 | $EGREP 'stamp-vti:.*textutils\.texi( .*)?$' Makefile.in
|
---|
58 | $EGREP 'stamp-vti:.*\$\(top_srcdir\)/configure( .*)?$' Makefile.in
|
---|
59 |
|
---|
60 |
|
---|
61 | # Check that the path to mdate-sh is correct. Over escaping of `$'
|
---|
62 | # etc. once led to `\$\(srcdir\)/mdate-sh'.
|
---|
63 |
|
---|
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
|
---|
68 |
|
---|
69 | exit 0
|
---|