maintainer: Add maintainer-commit, maintainer-tag goals.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 18 Jan 2020 15:06:42 +0000 (15:06 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 18 Jan 2020 15:36:28 +0000 (15:36 +0000)
Goalfile.in
Makefile.in

index 8f8a322..9126723 100644 (file)
@@ -277,6 +277,15 @@ goal distcheck = : dist {
 #----------------------------------------------------------------------
 # Maintainer rules.
 
+# Easy way to commit and tag a release.
+goal maintainer-commit = {
+    git commit -a -m "Version "%version"."
+}
+
+goal maintainer-tag = {
+    git tag -a v%version -m "Version "%version -f
+}
+
 # Check no files are missing from distfiles above by unpacking the
 # distribution tarball and comparing it to git.
 goal maintainer-check-extra-dist = : dist @{
index eeded2e..19e9c8c 100644 (file)
@@ -19,6 +19,7 @@
 # Pass through normal targets to Goalfile.in
 
 all clean depend install check maintainer-clean dist distcheck \
+maintainer-commit maintainer-tag \
 maintainer-check-extra-dist maintainer-release \
 maintainer-srpm maintainer-fedora-copr: src/goals
        @./run src/goals $@ 'DESTDIR="$(DESTDIR)"'