doc: update Vala documentation
[automake.git] / t / autodist-stamp-vti.sh
blobb00081427ca58e74161d97a2de66046e665c58ff
1 #! /bin/sh
2 # Copyright (C) 2011-2024 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
36 # The test can fail under a parallel make, so disable.
37 # No evident way to debug or reliably reproduce.
38 .NOTPARALLEL:
39 END
41 cat > foo.texi << 'END'
42 \input texinfo
43 @setfilename foo.info
44 @settitle Zardoz
45 @node Top
46 @include version.texi
47 bar baz quux
48 @bye
49 END
51 # Required when using Texinfo.
52 : > texinfo.tex
53 cp "$am_scriptdir"/mdate-sh .
55 $ACLOCAL
56 $AUTOCONF
57 $AUTOMAKE -a
59 ./configure
60 $MAKE test