1#! /bin/sh 2# Copyright (C) 2011-2021 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 <https://www.gnu.org/licenses/>. 16 17# Check that 'stamp-vti' is automatically distributed when info_TEXINFOS 18# and version.texi are involved. 19# Related to automake bug#7819. 20 21required=makeinfo 22. test-init.sh 23 24cat >> configure.ac << END 25AC_OUTPUT 26END 27 28cat > Makefile.am << 'END' 29info_TEXINFOS = foo.texi 30.PHONY: test 31test: all distdir 32 ls -l $(distdir) 33 echo ' ' $(DIST_COMMON) ' ' | grep '[ /]stamp-vti ' 34 test -f $(distdir)/stamp-vti 35 36# The test can fail under a parallel make, so disable. 37# No evident way to debug or reliably reproduce. 38.NOTPARALLEL: 39END 40 41cat > foo.texi << 'END' 42\input texinfo 43@setfilename foo.info 44@settitle Zardoz 45@node Top 46@include version.texi 47bar baz quux 48@bye 49END 50 51# Required when using Texinfo. 52: > texinfo.tex 53cp "$am_scriptdir"/mdate-sh . 54 55$ACLOCAL 56$AUTOCONF 57$AUTOMAKE -a 58 59./configure 60$MAKE test 61 62: 63