Blame SOURCES/0017-maintainer-Add-rules-for-maintainers.patch

c18f13
From b6161b67b0bd542169e13cdfa0488a0266e3ae7a Mon Sep 17 00:00:00 2001
c18f13
From: "Richard W.M. Jones" <rjones@redhat.com>
c18f13
Date: Thu, 3 Oct 2019 10:13:43 +0100
a41150
Subject: [PATCH 17/25] maintainer: Add rules for maintainers.
c18f13
c18f13
Adds:
c18f13
make maintainer-check-extra-dist
c18f13
make maintainer-commit
c18f13
make maintainer-tag
c18f13
---
c18f13
 Makefile.am | 27 +++++++++++++++++++++++++++
c18f13
 1 file changed, 27 insertions(+)
c18f13
c18f13
diff --git a/Makefile.am b/Makefile.am
c18f13
index 1cb73b7..5435132 100644
c18f13
--- a/Makefile.am
c18f13
+++ b/Makefile.am
c18f13
@@ -41,3 +41,30 @@ virt-what.txt: virt-what.pod
c18f13
 	pod2text $? > $@
c18f13
 
c18f13
 endif
c18f13
+
c18f13
+#----------------------------------------------------------------------
c18f13
+# Maintainers only!
c18f13
+
c18f13
+# Check no files are missing from EXTRA_DIST rules, and that all
c18f13
+# generated files have been included in the tarball.  (Note you must
c18f13
+# have done 'make dist')
c18f13
+maintainer-check-extra-dist:
c18f13
+	@zcat $(PACKAGE_NAME)-$(VERSION).tar.gz | tar tf - | sort | \
c18f13
+	  sed 's,^$(PACKAGE_NAME)-$(VERSION)/,,' > tarfiles
c18f13
+	@git ls-files | \
c18f13
+	  sort > gitfiles
c18f13
+	@comm -13 tarfiles gitfiles > comm-out
c18f13
+	@echo Checking for differences between EXTRA_DIST and git ...
c18f13
+	@cat comm-out
c18f13
+	@[ ! -s comm-out ]
c18f13
+	@rm tarfiles gitfiles comm-out
c18f13
+	@echo PASS: EXTRA_DIST tests
c18f13
+
c18f13
+# Commit everything in the current directory and set the commit
c18f13
+# message to the current version number.
c18f13
+maintainer-commit:
c18f13
+	git commit -a -m "Version $(VERSION)."
c18f13
+
c18f13
+# Tag HEAD with the current version.
c18f13
+maintainer-tag:
c18f13
+	git tag -a v$(VERSION) -m "Version $(VERSION)." -f
c18f13
-- 
a41150
2.18.4
c18f13