Merge branch 'minor'
[automake.git] / t / autodist-stamp-vti.sh
blob181df66940ee7a95865e186843cfe6009cc77cfe
1 #! /bin/sh
2 # Copyright (C) 2011-2017 Free Software Foundation, Inc.
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.
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.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <https://www.gnu.org/licenses/>.
17 # Check that 'stamp-vti' is automatically distributed when info_TEXINFOS
18 # and version.texi are involved.
19 # Related to automake bug#7819.
21 required=makeinfo
22 . test-init.sh
24 cat >> configure.ac << END
25 AC_OUTPUT
26 END
28 cat > Makefile.am << 'END'
29 info_TEXINFOS = foo.texi
30 .PHONY: test
31 test: all distdir
32 ls -l $(distdir)
33 echo ' ' $(DIST_COMMON) ' ' | grep '[ /]stamp-vti '
34 test -f $(distdir)/stamp-vti
35 END
37 cat > foo.texi << 'END'
38 \input texinfo
39 @setfilename foo.info
40 @settitle Zardoz
41 @node Top
42 @include version.texi
43 bar baz quux
44 @bye
45 END
47 # Required when using Texinfo.
48 : > texinfo.tex
49 cp "$am_scriptdir"/mdate-sh .
51 $ACLOCAL
52 $AUTOCONF
53 $AUTOMAKE -a
55 ./configure
56 $MAKE test