123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- #! /bin/sh
- am_create_testdir=empty
- . test-init.sh
- cat > configure.ac <<END
- AC_INIT([$me], [1.0])
- AC_CONFIG_AUX_DIR([.])
- AM_INIT_AUTOMAKE
- AC_CONFIG_FILES([Makefile])
- AC_OUTPUT
- END
- $ACLOCAL
- $AUTOCONF
- list=$($AUTOMAKE --help \
- | sed -n '/^Files.*automatically distributed.*if found.*always/,/^ *$/p' \
- | sed 1d)
- list=$(echo $list)
- test -n "$list"
- cat > Makefile.am <<'END'
- include distfiles.am
- check-local:
- @echo DIST_COMMON:
- @for f in $(DIST_COMMON); do echo " $$f"; done
- @echo DISTDIR:
- @ls -l $(distdir) | sed 's/^/ /'
- @for f in $(autodist_list); do \
- echo "file: $$f"; \
- test -f $(distdir)/$$f \
- || { echo $$f: distdir fail >&2; exit 1; }; \
- echo ' ' $(DIST_COMMON) ' ' | grep "[ /]$$f " >/dev/null \
- || { echo $$f: distcom fail >&2; exit 1; }; \
- done
- END
- : First try listing the automatically-distributed files in proper
- : targets in Makefile.am
- echo "MAINTAINERCLEANFILES = $list" > distfiles.am
- for f in $list; do echo "$f :; touch $f"; done >> distfiles.am
- cat distfiles.am
- $AUTOMAKE -a
- ./configure
- $MAKE distdir
- autodist_list="$list" $MAKE check
- $MAKE maintainer-clean
- test ! -e README
- rm -rf $me-1.0
- : Now try creating the automatically-distributed files before
- : running automake.
- : > distfiles.am
- for f in $list; do
- echo dummy > $f
- done
- ls -l
- $AUTOMAKE
- ./configure
- $MAKE distdir
- autodist_list="$list" $MAKE check
- :
|