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

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