2 # Copyright (C) 2012-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)
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 # Texinfo input files using @include directives. Check both in-tree
18 # and VPATH builds, and both top-level and subdir input.
20 required
='makeinfo tex texi2dvi'
23 echo AC_OUTPUT
>> configure.ac
25 cat > Makefile.am
<< 'END'
26 info_TEXINFOS
= main.texi sub
/more.texi
27 main_TEXINFOS
= one.texi two.texi three.texi
28 sub_more_TEXINFOS
= sub
/desc.texi sub
/hist.texi
31 # We avoid apostrophes in the test document since Texinfo
32 # turns them into UTF-8, which is not easy to grep.
34 cat > main.texi
<< 'END'
36 @setfilename main.info
44 * three
:: Chapter three
53 cat > one.texi
<< 'END'
59 cat > two.texi
<< 'END'
65 cat > three.texi
<< 'END'
67 @chapter Chapter three
73 cat > sub
/more.texi
<< 'END'
75 @setfilename
more.info
81 * desc
:: Description of this program
82 * hist
:: History of this program
90 cat > sub
/desc.texi
<< 'END'
92 @chapter Description of this program
93 It does something
, really.
96 cat > sub
/hist.texi
<< 'END'
98 @chapter History of this program
99 It was written somehow.
107 check_info_contents
()
110 $FGREP "Foo bar, baz." $srcdir/main.info
111 $FGREP "Blah Blah Blah." $srcdir/main.info
112 $FGREP "Quux quux quux." $srcdir/main.info
113 $FGREP 'It does something, really.' $srcdir/sub
/more.info
114 $FGREP 'It was written somehow.' $srcdir/sub
/more.info
119 find ${1-.} -type f
-name '*.info' | LC_ALL
=C
sort > got
130 $AUTOMAKE --add-missing
145 $MAKE maintainer-clean
147 test ! -f sub
/more.dvi
149 test ! -f sub
/more.info
157 sed 's|^\./|../|' ..
/exp
> exp
163 check_info_contents ..