7 echo "Testing with /bin/ksh"
10 if test '!' -f /bin/ksh; then
11 echo "/bin/zsh does not exist, cannot run test"
14 cat $AUTODIST | sed 's/#!\/bin\/sh/#!\/bin\/ksh/' > ./autodist
16 AUTODIST=../autodist # from inside tests/test
23 chmod +x $AUTODIST || exit 1
25 cat << EOF > configure.ad
31 AC_CONFIG_HEADERS(config.h)
44 cat << EOF > Makefile.ad
54 mkdir -p subdir || exit 1
56 cat << EOF > subdir/configure.ad
57 # subdir/configure.ad fragment
65 $AUTODIST -i || exit 1
66 if test '!' -d distdir; then
67 echo "error: distdir/ does no exist"
71 cp -p ../../default distdir || exit 1
72 cp -p ../../autodist.conf distdir || exit 1
74 cat << EOF > distdir/test
75 name Test Distribution
77 bug-report test-dist@test.org
81 touch README NEWS AUTHORS ChangeLog
83 echo "inherit test" >> distdir/default
86 $AUTODIST test 1.0 || exit 1
92 $AUTODIST -m || exit 1
94 if test '!' -f test-distro-1.0.tar.gz; then
95 echo "error: makedist failed"
102 rm -rf subdir distdir $AUTODIST