]> granicus.if.org Git - sudo/commitdiff
Check for any uncommitted changes in dist target and add force-dist
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 18 Apr 2013 13:40:38 +0000 (09:40 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 18 Apr 2013 13:40:38 +0000 (09:40 -0400)
target that omit check-dist.

Makefile.in

index ed9680330dd5d721638974174dd59517120f89b4..719b2714b34d64c6698e76c4e5255fd415f3a76a 100644 (file)
@@ -259,13 +259,16 @@ install-nls:
 
 check-dist: update-pot compile-po
        @if [ -d .hg ]; then \
-           if hg stat -am | grep '\.[mp]ot*$$'; then \
-               echo "Uncommitted message catalog changes" 1>&2; \
-               false; \
+           if test `hg stat -am | wc -l` -ne 0; then \
+               echo "Uncommitted changes" 1>&2; \
+               hg stat -am 1>&2; \
+               exit 1; \
            fi; \
        fi
 
-dist: check-dist ChangeLog $(srcdir)/MANIFEST
+dist: check-dist force-dist
+
+force-dist: ChangeLog $(srcdir)/MANIFEST
        pax -w -x ustar -s '/^/$(PACKAGE_TARNAME)-$(VERSION)\//' \
            -f ../$(PACKAGE_TARNAME)-$(VERSION).tar \
            `sed 's/[   ].*//' $(srcdir)/MANIFEST`