| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 | #! /bin/sh# Copyright (C) 2002-2017 Free Software Foundation, Inc.## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program.  If not, see <http://www.gnu.org/licenses/>.# Check that info files are normally built in $(srcdir),# not in $(builddir).required='makeinfo tex texi2dvi'. test-init.shcat >> configure.ac << 'END'AC_OUTPUTENDcat > Makefile.am << 'END'info_TEXINFOS = main.texiENDcat > main.texi << 'END'\input texinfo@setfilename main.info@settitle main@node TopHello walls.@include version.texi@byeEND$ACLOCAL$AUTOMAKE --add-missing$AUTOCONFmkdir buildcd build../configure$MAKEtest -f ../main.infotest ! -e main.infotest -f ../stamp-vtitest ! -e stamp-vtitest -f ../version.texitest ! -e version.texicd ..rm -rf build make.info* stamp-vti version.texi./configure$MAKEtest -f main.info# Make sure stamp-vti is older that version.texi.# (A common situation in a real tree.)# This is needed to test the "subtle" issue described below.test -f stamp-vtitest -f version.texi$sleeptouch stamp-vti$MAKE distcleantest -f stamp-vtitest -f version.teximkdir buildcd build../configure$MAKE# main.info should not be rebuilt in the current directory, since# it's up-to-date in $(srcdir).# This can be caused by a subtle issue related to VPATH handling# of version.texi (see also the comment in texi-vers.am): because# stamp-vti is newer than version.texi, the 'version.texi: stamp-vti'# rule is always triggered.  Still that's not a reason for 'make'# to think 'version.texi' has been created...test ! -e main.info$MAKE dvitest -f main.dvi$MAKE distcheck:
 |