From 184c95b2f3de5246e5ee000772d71de2d9664c41 Mon Sep 17 00:00:00 2001 From: samlhuillier Date: Tue, 28 Nov 2023 12:58:59 -0600 Subject: [PATCH] add makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..01342d57 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +get-latest-tag: + git describe --tags --abbrev=0 + +version-bump-patch: + make version-bump type=patch + +version-bump-minor: + make version-bump type=minor + +version-bump-major: + make version-bump type=major + +fetch-tags: + git fetch --all --tags + +version-bump: fetch-tags + [ "${type}" ] || ( echo "'type' not provided [patch, minor, major]"; exit 1 ) + bump2version --current-version $(shell git describe --tags --abbrev=0) ${type} --list --tag --serialize v{major}.{minor}.{patch} --tag-name {new_version} | grep new_version | sed -r s,"^.*=",, | xargs git push origin