source: trunk/essentials/sys-devel/automake-1.7/tests/vtexi.test

Last change on this file was 3120, checked in by bird, 18 years ago

automake 1.7.9

File size: 2.0 KB
Line 
1#!/bin/sh
2# Copyright (C) 1996, 1997, 2000, 2001, 2002 Free Software Foundation, Inc.
3#
4# This file is part of GNU Automake.
5#
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.
10#
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.
15#
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.
20
21. ./defs || exit 1
22
23cat > Makefile.am << 'END'
24info_TEXINFOS = textutils.texi
25END
26
27cat > textutils.texi << 'END'
28@include version.texi
29@setfilename textutils.info
30END
31
32# Required when using Texinfo.
33: > mdate-sh
34: > texinfo.tex
35
36set -e
37
38$ACLOCAL || exit 1
39$AUTOMAKE
40
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')
48
49grep '^textutils\.info:.*version\.texi$' Makefile.in
50
51
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 substituted.
55
56$EGREP '^stamp-vti:.*textutils\.texi( .*)?$' Makefile.in
57$EGREP '^stamp-vti:.*\$\(top_srcdir\)/configure( .*)?$' Makefile.in
58
59
60# Check that the path to mdate-sh is correct. Over escaping of `$'
61# etc. once led to `\$\(srcdir\)/mdate-sh'.
62
63# Filter out '$(srcdir)/mdate-sh'; output occurrences of `SOMETHING/mdate-sh'
64sed -n 's,\$(srcdir)/mdate-sh,,g;s,.* \([^ ]*/mdate-sh\) .*,\1,gp' Makefile.in|
65# There must remain nothing.
66 grep . && exit 1
67
68exit 0
Note: See TracBrowser for help on using the repository browser.