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
38 mkdir -p subdir || exit 1
40 cat << EOF > subdir/configure.ad
41 # subdir/configure.ad fragment
49 $AUTODIST -i || exit 1
50 if test '!' -d distdir; then
51 echo "error: distdir/ does no exist"
55 cp -p ../../default distdir || exit 1
56 cp -p ../../autodist.conf distdir || exit 1
58 cat << EOF > distdir/test
59 name Test Distribution
61 bug-report test-dist@test.org
65 touch README NEWS AUTHORS ChangeLog
67 echo "inherit test" >> distdir/default
70 $AUTODIST test 1.0 || exit 1
76 $AUTODIST -m || exit 1
78 if test '!' -f test-distro-1.0.tar.gz; then
79 echo "error: makedist failed"