2001-05-13 Tom Tromey <tromey@redhat.com>
+ Reported by Rainer Orth:
+ * lib/am/distdir.am (?DISTDIR?distdir): Define conditional on
+ TOPDIR_P.
+ * tests/Makefile.am (TESTS): Added distname.test.
+ * tests/distname.test: New file.
+
* Makefile.am (dist_pkgdata_DATA): Removed.
* tests/defs: Find files to copy in lib/.
Peter Muir iyhi@yahoo.com
Petter Reinholdtsen pere@hungry.com
Phil Nelson phil@cs.wwu.edu
+Rainer Orth ro@techfak.uni-bielefeld.de
Raja R Harinath harinath@cs.umn.edu
Ralf Corsepius corsepiu@faw.uni-ulm.de
Ralph Schleicher rs@purple.UL.BaWue.DE
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
top_distdir = %TOP_DISTDIR%
+if %?TOPDIR_P%
+# Avoid unsightly `./'.
+?DISTDIR?distdir = $(PACKAGE)-$(VERSION)
+else !%?TOPDIR_P%
?DISTDIR?distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+endif !%?TOPDIR_P%
distdir: $(DISTFILES)
##
discover.test \
distcommon.test \
distdir.test \
+distname.test \
double.test \
dup.test \
dup2.test \
discover.test \
distcommon.test \
distdir.test \
+distname.test \
double.test \
dup.test \
dup2.test \
--- /dev/null
+#! /bin/sh
+
+# Test of names in tar file.
+# From Rainer Orth
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AC_INIT(a.c)
+AM_INIT_AUTOMAKE(nonesuch, 0.23)
+AM_PROG_CC_C_O
+AC_PROG_CC
+AC_OUTPUT(Makefile)
+END
+
+cat > Makefile.am << 'END'
+bin_PROGRAMS = wish
+wish_SOURCES = a.c
+END
+
+: > a.c
+
+set -e
+
+$needs_autoconf
+
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE --include-deps --copy --add-missing
+./configure
+$MAKE dist
+
+gunzip nonesuch-0.23.tar.gz
+(tar tf nonesuch-0.23.tar | fgrep './nonesuch-0.23/a.c') && exit 1
+exit 0