3 AUTODIST=../../autodist
10 chmod +x $AUTODIST || exit 1
12 cat << EOF > configure.ad
18 AC_CONFIG_HEADERS(config.h)
28 cat << EOF > Makefile.ad
37 mkdir -p subdir || exit 1
39 cat << EOF > subdir/configure.ad
40 # subdir/configure.ad fragment
48 $AUTODIST -i || exit 1
49 if test '!' -d distdir; then
50 echo "error: distdir/ does no exist"
54 cp -p ../../default distdir || exit 1
55 cp -p ../../autodist.conf distdir || exit 1
57 cat << EOF > distdir/test
58 name Test Distribution
60 bug-report test-dist@test.org
64 touch README NEWS AUTHORS ChangeLog
66 echo "inherit test" >> distdir/default
69 $AUTODIST test 1.0 || exit 1
75 $AUTODIST -m || exit 1
77 if test '!' -f test-distro-1.0.tar.gz; then
78 echo "error: makedist failed"