3 AUTODIST=../../autodist
10 chmod +x $AUTODIST || exit 1
12 cat << EOF > configure.ad
18 AC_CONFIG_HEADERS(config.h)
31 cat << EOF > Makefile.ad
41 mkdir -p subdir || exit 1
43 cat << EOF > subdir/configure.ad
44 # subdir/configure.ad fragment
52 $AUTODIST -i || exit 1
53 if test '!' -d distdir; then
54 echo "error: distdir/ does no exist"
58 cp -p ../../default distdir || exit 1
59 cp -p ../../autodist.conf distdir || exit 1
61 cat << EOF > distdir/test
62 name Test Distribution
64 bug-report test-dist@test.org
68 touch README NEWS AUTHORS ChangeLog
70 echo "inherit test" >> distdir/default
73 $AUTODIST test 1.0 || exit 1
79 $AUTODIST -m || exit 1
81 if test '!' -f test-distro-1.0.tar.gz; then
82 echo "error: makedist failed"