From Nicolas Joly:
[automake.git] / tests / distname.test
blob350d58ff86e8fe11f0b33258c6ff7955baa0f2b7
1 #! /bin/sh
3 # Test of names in tar file.
4 # From Rainer Orth
6 . $srcdir/defs || exit 1
8 cat > configure.in << 'END'
9 AC_INIT(a.c)
10 AM_INIT_AUTOMAKE(nonesuch, 0.23)
11 AM_PROG_CC_C_O
12 AC_PROG_CC
13 AC_OUTPUT(Makefile)
14 END
16 cat > Makefile.am << 'END'
17 bin_PROGRAMS = wish
18 wish_SOURCES = a.c
19 END
21 : > a.c
23 set -e
25 $needs_autoconf
27 $ACLOCAL
28 $AUTOCONF
29 $AUTOMAKE --include-deps --copy --add-missing
30 ./configure
31 $MAKE dist
33 gunzip nonesuch-0.23.tar.gz
34 (tar tf nonesuch-0.23.tar | fgrep './nonesuch-0.23/a.c') && exit 1
35 exit 0