aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/debian/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-04-30 00:35:27 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-04-30 00:35:27 +0200
commit475990340ba174546f69eda8919a76bb4b6eca77 (patch)
treedf4f630b36ebacf0a3f371faf311da44ee7520de /debian/Makefile
parentdebian/Makefile: export NAME and EMAIL (diff)
downloadconfig-links-475990340ba174546f69eda8919a76bb4b6eca77.tar.gz
config-links-475990340ba174546f69eda8919a76bb4b6eca77.zip
debian/Makefile: add commit target
Diffstat (limited to 'debian/Makefile')
-rw-r--r--debian/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/Makefile b/debian/Makefile
index c92c305..c837eda 100644
--- a/debian/Makefile
+++ b/debian/Makefile
@@ -53,6 +53,12 @@ deps:
dch:
gbp dch --distribution=unstable
+.PHONY: commit
+commit:
+ cd -- '$(call escape,$(root))' && \
+ version="$$( dpkg-parsechangelog --show-field Version )" && \
+ git commit -m "debian: $$version"
+
.PHONY: tag
tag:
pushd '$(call escape,$(root))' && gbp buildpackage --git-tag-only