# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to ensure that a ".info~" file doesn't end up in the
-# distribution. Bug report from Greg McGary.
+# Test to ensure that a ".info~" or ".info.bak" file doesn't end up
+# in the distribution. Bug report from Greg McGary.
. test-init.sh
END
cat > Makefile.am << 'END'
-info_TEXINFOS = textutils.texi
-.PHONY: test
-test:
+info_TEXINFOS = textutils.texi subdir/main.texi
+test: distdir
@echo DISTFILES = $(DISTFILES)
- case '$(DISTFILES)' in *'~'*) exit 1;; *) exit 0;; esac
+ @case '$(DISTFILES)' in *'~'*|*'.bak'*) exit 1;; *) exit 0;; esac
+ st=0; \
+ find $(distdir) | grep '~' && st=1; \
+ find $(distdir) | grep '\.bak' && st=1; \
+ exit $$st
+PHONY: test
END
: > texinfo.tex
+mkdir subdir
echo '@setfilename textutils.info' > textutils.texi
-: > textutils.info~
+echo '@setfilename main.info' > subdir/main.texi
$ACLOCAL
$AUTOCONF
$AUTOMAKE
./configure
+: > textutils.info
+: > subdir/main.info
+: > textutils.info~
+: > textutils.info.bak
+: > subdir/main.info~
+: > subdir/main.info.bak
$MAKE test
+$MAKE maintainer-clean
+test -f subdir/main.info~
+test -f subdir/main.info.bak
:
. test-init.sh
cat > Makefile.am << 'END'
-info_TEXINFOS = foo.txi
+info_TEXINFOS = foo.txi bar.texinfo
END
echo '@setfilename foo.info' > foo.txi
+echo '@setfilename bar.info' > bar.texinfo
: > texinfo.tex
$ACLOCAL
$AUTOMAKE
grep '^\.txi\.info: *$' Makefile.in
+grep '^\.texinfo\.info: *$' Makefile.in
:
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure file extensions are matched correctly.
+# Make sure file extensions are matched correctly in the code
+# parsing texi files for @setfilename declarations.
# Report from Eric Dorland.
. test-init.sh
EOF
$ACLOCAL
-$AUTOCONF
$AUTOMAKE --add-missing
+
+$EGREP '[ /]bar-1\.9\.info( |$)' Makefile.in
+
+:
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check for subdir Texinfo (PR/343).
-# Also make sure we do not distribute too much foo.info* files (Report
-# from Vincent Lefevre).
required='makeinfo tex texi2dvi'
. test-init.sh
installcheck-local:
test -f "$(infodir)/main.info"
-check-local:
- test ! -f $(srcdir)/subdir/main.info.bak
END
mkdir subdir
I'm included.
END
-touch subdir/main.info.bak
-
$ACLOCAL
$AUTOMAKE --add-missing
$AUTOCONF
$MAKE distcheck
test -f ../subdir/main.info
test ! -e subdir/main.info
-test -f ../subdir/main.info.bak
: