From aa2e01cc20ade7dbadb6fcb864ea66a595a8d491 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 27 Feb 2001 07:55:17 +0000 Subject: [PATCH] * distdir.am (distcheck): Print error message if distclean failed to fully clean. --- ChangeLog | 5 +++++ distdir.am | 3 ++- lib/am/distdir.am | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 87e35703..69083f8a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-02-27 Tom Tromey + + * distdir.am (distcheck): Print error message if distclean failed + to fully clean. + 2001-02-27 Pavel Roskin * tests/Makefile.am (TESTS): s/yaccpvath/yaccvpath/. diff --git a/distdir.am b/distdir.am index e566674e..8f0037cd 100644 --- a/distdir.am +++ b/distdir.am @@ -208,7 +208,8 @@ distdir: $(DISTFILES) ## Make sure to remove the dist file we created in the test build ## directory. ?TOPDIR? && rm -f $(distdir).tar.gz \ -?TOPDIR? && test `find . -type f -print | wc -l` -eq 0 +?TOPDIR? && test `find . -type f -print | wc -l` -ne 0 \ +?TOPDIR? && (echo "Error: files left after distclean" 1>&2; exit 1) ?TOPDIR? -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir) ?TOPDIR? @echo "$(distdir).tar.gz is ready for distribution" | \ ?TOPDIR? sed 'h;s/./=/g;p;x;p;x' diff --git a/lib/am/distdir.am b/lib/am/distdir.am index e566674e..8f0037cd 100644 --- a/lib/am/distdir.am +++ b/lib/am/distdir.am @@ -208,7 +208,8 @@ distdir: $(DISTFILES) ## Make sure to remove the dist file we created in the test build ## directory. ?TOPDIR? && rm -f $(distdir).tar.gz \ -?TOPDIR? && test `find . -type f -print | wc -l` -eq 0 +?TOPDIR? && test `find . -type f -print | wc -l` -ne 0 \ +?TOPDIR? && (echo "Error: files left after distclean" 1>&2; exit 1) ?TOPDIR? -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir) ?TOPDIR? @echo "$(distdir).tar.gz is ready for distribution" | \ ?TOPDIR? sed 'h;s/./=/g;p;x;p;x' -- 2.43.5