~ubuntu-branches/ubuntu/precise/automake1.11/precise-proposed

« back to all changes in this revision

Viewing changes to tests/txinfo28.test

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2009-08-12 02:36:44 UTC
  • Revision ID: james.westby@ubuntu.com-20090812023644-f40we9eqbmx1dpbj
Tags: upstream-1.11
ImportĀ upstreamĀ versionĀ 1.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
3
#
 
4
# This program is free software; you can redistribute it and/or modify
 
5
# it under the terms of the GNU General Public License as published by
 
6
# the Free Software Foundation; either version 2, or (at your option)
 
7
# any later version.
 
8
#
 
9
# This program is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
# GNU General Public License for more details.
 
13
#
 
14
# You should have received a copy of the GNU General Public License
 
15
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
 
 
17
# Check that info files are built in builddir when needed.
 
18
# Similar to txinfo24.test, but obfuscating filenames with variable references.
 
19
# Report from Ralf Corsepius.
 
20
 
 
21
required='makeinfo tex texi2dvi-o'
 
22
. ./defs || Exit 1
 
23
 
 
24
set -e
 
25
 
 
26
# This setting, when honored by GNU ls, used to cause an infinite loop
 
27
# in mdate-sh.
 
28
TIME_STYLE="+%Y-%m-%d %H:%M:%S"
 
29
export TIME_STYLE
 
30
 
 
31
echo AC_OUTPUT >> configure.in
 
32
 
 
33
cat > Makefile.am << 'END'
 
34
MA = ma
 
35
IN = in
 
36
PROJ = $(MA)$(IN)
 
37
include fragment.mk
 
38
info_TEXINFOS = ma$(IN).texi
 
39
END
 
40
 
 
41
echo 'CLEANFILES = $(PROJ).info' > fragment.mk
 
42
 
 
43
cat > main.texi << 'END'
 
44
\input texinfo
 
45
@setfilename main.info
 
46
@settitle main
 
47
@node Top
 
48
Hello walls.
 
49
@include version.texi
 
50
@bye
 
51
END
 
52
 
 
53
$ACLOCAL
 
54
$AUTOMAKE --add-missing
 
55
$AUTOCONF
 
56
 
 
57
mkdir build
 
58
cd build
 
59
../configure
 
60
$MAKE
 
61
test -f main.info
 
62
 
 
63
cd ..
 
64
rm -rf build
 
65
./configure
 
66
$MAKE
 
67
test -f main.info
 
68
 
 
69
# Make sure stamp-vti is older that version.texi.
 
70
# (A common situation in a real tree.)
 
71
test -f stamp-vti
 
72
test -f version.texi
 
73
$sleep
 
74
touch stamp-vti
 
75
 
 
76
$MAKE distclean
 
77
test -f stamp-vti
 
78
test -f version.texi
 
79
 
 
80
mkdir build
 
81
cd build
 
82
../configure
 
83
$MAKE
 
84
# main.info should be rebuilt in the current directory
 
85
test -f main.info
 
86
test ! -f ../main.info
 
87
$MAKE dvi
 
88
test -f main.dvi
 
89
 
 
90
$MAKE distcheck