From 29a5e547f63315859ec68dda4b7c9c972fd29bbe Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Fri, 29 Apr 2005 18:34:23 +0000 Subject: [PATCH] updates. --- apps/autodist/tests/autodist6.test | 68 ++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100755 apps/autodist/tests/autodist6.test diff --git a/apps/autodist/tests/autodist6.test b/apps/autodist/tests/autodist6.test new file mode 100755 index 0000000..c4e2d9e --- /dev/null +++ b/apps/autodist/tests/autodist6.test @@ -0,0 +1,68 @@ +#!/bin/sh + +AUTODIST=../../autodist + +rm -rf test +mkdir test + +cd test || exit 1 + +chmod +x $AUTODIST || exit 1 + +cat << EOF > configure.ad +AD_INIT +#ifdef _DIST_DEFAULT +AC_CANONICAL_BUILD +AM_INIT_AUTOMAKE +AC_PREREQ(2.52) +AC_CONFIG_HEADERS(config.h) +AC_CONFIG_FILES( +Makefile +) +AC_OUTPUT +echo configure.ad ok +#else !_DIST_DEFAULT +echo "ERROR" +exit 1 +#endif _DIST_DEFAULT +EOF + +cat << EOF > Makefile.ad +SUBDIRS= \\ +#ifdef _DIST_NODEF + nodef \\ + poa \\ + paa \\ +#endif _DIST_NODEF + . \\ + . \\ + . \\ + . \\ + +EOF + +rm -rf distdir subdir +mkdir -p subdir || exit 1 + +$AUTODIST -i || exit 1 +if test '!' -d distdir; then + echo "error: distdir/ does no exist" + exit 1 +fi + +cp -p ../../default distdir || exit 1 +cp -p ../../autodist.conf distdir || exit 1 + +touch README NEWS AUTHORS ChangeLog + +$AUTODIST || exit 1 + +./configure || exit 1 +make || exit 1 +echo make ok + +echo test ok + +# Cleanup +rm -rf subdir distdir + -- 2.24.0