Merge branch 'msvc' into maint
[platform/upstream/automake.git] / tests / vtexi2.test
1 #! /bin/sh
2 # Copyright (C) 1996, 1997, 2001, 2002, 2011 Free Software Foundation,
3 # Inc.
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
8 # any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18 # Test for bug reported by Glenn Amerine:
19 #   When automake sees version.texi is being included by a texi file,
20 #   version.texi gets listed as a dependency for the .info file but
21 #   not the .dvi file.
22
23 . ./defs || Exit 1
24
25 set -e
26
27 cat > Makefile.am << 'END'
28 info_TEXINFOS = zardoz.texi
29 END
30
31 cat > zardoz.texi << 'END'
32 @setfilename zardoz
33 @include version.texi
34 END
35
36 # Required when using Texinfo.
37 : > mdate-sh
38 : > texinfo.tex
39
40 $ACLOCAL
41 $AUTOMAKE
42
43 grep '^zardoz\.dvi:.*[ /]version.texi' Makefile.in
44
45 :