Tag
Hash :
e37b4d8a
Author :
Date :
2001-05-14T05:09:31
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.
#! /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