build: Add maintainer-check-extra-dist rule.

This is used by the maintainer to check for missing files
in EXTRA_DIST.
This commit is contained in:
Richard W.M. Jones
2013-10-14 18:20:21 +01:00
parent 56928b5381
commit ec0d0e0f62

View File

@@ -480,6 +480,17 @@ print-subdirs:
maintainer-tag:
git tag -a $(VERSION) -m "Version $(VERSION) ($(BRANCH_TYPE))" -f
# Maintainer only: check EXTRA_DIST rule is complete.
# (Note you must have done 'make dist')
maintainer-check-extra-dist:
zcat $(PACKAGE_NAME)-$(VERSION).tar.gz | tar tf - | sort | \
sed 's,^$(PACKAGE_NAME)-$(VERSION)/,,' > tmp/tarfiles
git ls-files | sort > tmp/gitfiles
diff -ur tmp/tarfiles tmp/gitfiles | grep '^\+' | \
grep -v src/api-support/[0-9]
rm tmp/tarfiles tmp/gitfiles
# Provide help on common Makefile targets.
help: