news: add entry about recent 'ar-lib' changes
[automake.git] / tests / txinfo.test
blobb764e53d3bfbf8ba0342c16bc0de712121976c79
1 #! /bin/sh
2 # Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2011 Free
3 # Software Foundation, Inc.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
8 # any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # Test to ensure texinfo.tex is included in distribution. Bug report by
19 # Jim Meyering.
21 required=makeinfo
22 . ./defs || Exit 1
24 set -e
26 cat >> configure.in <<'END'
27 AC_OUTPUT
28 END
30 cat > Makefile.am << 'END'
31 info_TEXINFOS = textutils.texi
32 .PHONY: test1 test2
33 test1:
34 @echo DISTFILES = $(DISTFILES)
35 echo ' ' $(DISTFILES) ' ' | grep '[ /]texinfo\.tex '
36 test2: distdir
37 ls -l $(distdir)
38 test -f $(distdir)/texinfo.tex
39 END
41 echo '@setfilename textutils.info' > textutils.texi
42 : > texinfo.tex
44 $ACLOCAL
45 $AUTOCONF
46 $AUTOMAKE
47 ./configure
48 $MAKE test1 test2