From: Richard W.M. Jones Date: Sat, 18 Jan 2020 15:06:42 +0000 (+0000) Subject: maintainer: Add maintainer-commit, maintainer-tag goals. X-Git-Tag: v'0.2'~2 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=08d5c22ab498ccf243a71e18c29fba922b3f3abf;p=goals.git maintainer: Add maintainer-commit, maintainer-tag goals. --- diff --git a/Goalfile.in b/Goalfile.in index 2e2dd4e..d330201 100644 --- a/Goalfile.in +++ b/Goalfile.in @@ -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 @{ diff --git a/Makefile.in b/Makefile.in index eeded2e..19e9c8c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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)"'