2 # Copyright (C) 2012-2017 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 cat > main.texi
<< 'END'
33 @setfilename main.info
41 * three
:: Chapter three
50 cat > one.texi
<< 'END'
56 cat > two.texi
<< 'END'
62 cat > three.texi
<< 'END'
70 cat > sub/more.texi << 'END
'
72 @setfilename more.info
78 * desc:: Description of this program
79 * hist:: History of this program
87 cat > sub/desc.texi << 'END
'
89 @chapter Description of this program
90 It does something, really.
93 cat > sub/hist.texi << 'END
'
95 @chapter History of this program
96 It was written somehow.
104 check_info_contents ()
107 $FGREP "Foo bar, baz." $srcdir/main.info
108 $FGREP "Blah Blah Blah." $srcdir/main.info
109 $FGREP "GNU's Not Unix.
" $srcdir/main.info
110 $FGREP 'It does something, really.' $srcdir/sub/more.info
111 $FGREP 'It was written somehow.' $srcdir/sub/more.info
116 find ${1-.} -type f -name '*.info' | LC_ALL=C sort > got
127 $AUTOMAKE --add-missing
142 $MAKE maintainer-clean
144 test ! -f sub/more.dvi
146 test ! -f sub/more.info
154 sed 's|^\./|../|' ../exp > exp
160 check_info_contents ..