From: Akim Demaille Date: Mon, 1 Oct 2001 07:09:01 +0000 (+0000) Subject: * lib/am/distdir.am (distcheck): Report the trailing files. X-Git-Tag: Release-1-5b~132 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=f9dc401e2290e9950c934054ccdd9bac5d11a21c;p=automake.git * lib/am/distdir.am (distcheck): Report the trailing files. Run `dist-gzip', not `dist', as it may leave other distribution flavors. --- diff --git a/ChangeLog b/ChangeLog index fa586a01..3b0b4607 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-10-01 Akim Demaille + + * lib/am/distdir.am (distcheck): Report the trailing files. + Run `dist-gzip', not `dist', as it may leave other distribution + flavors. + 2001-09-29 Paul Eggert * lib/mkinstalldirs: Use "mkdir -p" if it works, as that fixes diff --git a/lib/am/distdir.am b/lib/am/distdir.am index d847b467..14ad6b4d 100644 --- a/lib/am/distdir.am +++ b/lib/am/distdir.am @@ -263,16 +263,18 @@ distcheck: dist && $(MAKE) $(AM_MAKEFLAGS) uninstall \ ## We use -le 1 because the `dir' file might still exist after uninstall. && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \ - || (echo "Error: files left after uninstall" 1>&2; \ - exit 1) ) \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ + || { echo "ERROR: files left after uninstall:" ; \ + find $$dc_install_base -type f -print ; \ + exit 1; } >&2 ) \ + && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \ && $(MAKE) $(AM_MAKEFLAGS) distclean \ ## Make sure to remove the dist file we created in the test build ## directory. && rm -f $(distdir).tar.gz \ && (test `find . -type f -print | wc -l` -eq 0 \ - || (echo "Error: files left after distclean" 1>&2; \ - exit 1) ) + || { echo "ERROR: files left after distclean:" ; \ + find . -type f -print ; \ + exit 1; } >&2 ) -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir) @echo "$(distdir).tar.gz is ready for distribution" | \ sed 'h;s/./=/g;p;x;p;x'