| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 | #! /bin/sh# Copyright (C) 2012-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/>.# Texinfo input files using @include directives.  Check both in-tree# and VPATH builds, and both top-level and subdir input.required='makeinfo tex texi2dvi'. test-init.shecho AC_OUTPUT >> configure.accat > Makefile.am << 'END'info_TEXINFOS = main.texi sub/more.teximain_TEXINFOS = one.texi two.texi three.texisub_more_TEXINFOS = sub/desc.texi sub/hist.texiENDcat > main.texi << 'END'\input texinfo@setfilename main.info@settitle main@ifnottex@node Top@top GNU dummy.@menu* one::   Chapter one* two::   Chapter two* three:: Chapter three@end menu@end ifnottex@include one.texi@include two.texi@include three.texi@byeENDcat > one.texi << 'END'@node one@chapter Chapter oneFoo bar, baz.ENDcat > two.texi << 'END'@node two@chapter Chapter twoBlah Blah Blah.ENDcat > three.texi << 'END'@node three@chapter Chapter twoGNU's Not Unix.ENDmkdir subcat > sub/more.texi << 'END'\input texinfo@setfilename more.info@settitle main@ifnottex@node Top@top GNU more.@menu* desc:: Description of this program* hist:: History of this program@end menu@end ifnottex@include desc.texi@include hist.texi@byeENDcat > sub/desc.texi << 'END'@node desc@chapter Description of this programIt does something, really.ENDcat > sub/hist.texi << 'END'@node hist@chapter History of this programIt was written somehow.ENDcat > exp << 'END'./main.info./sub/more.infoENDcheck_info_contents (){  srcdir=${1-.}  $FGREP "Foo bar, baz."                        $srcdir/main.info  $FGREP "Blah Blah Blah."                      $srcdir/main.info  $FGREP "GNU's Not Unix."                      $srcdir/main.info  $FGREP 'It does something, really.'           $srcdir/sub/more.info  $FGREP 'It was written somehow.'              $srcdir/sub/more.info}get_info_names (){  find ${1-.} -type f -name '*.info' | LC_ALL=C sort > got}check_expected (){  cat exp  cat got  diff exp got}$ACLOCAL$AUTOMAKE --add-missing$AUTOCONF./configure$MAKE infoget_info_namescheck_expectedcheck_info_contents$MAKE dvitest -f main.dvitest -f sub/more.dvi$MAKE maintainer-cleantest ! -f main.dvitest ! -f sub/more.dvitest ! -f main.infotest ! -f sub/more.infomkdir buildcd build../configure$MAKE all dviget_info_names ..sed 's|^\./|../|' ../exp > expcheck_expectedtest -f main.dvitest -f sub/more.dvicheck_info_contents ..$MAKE distcheck:
 |