From 475990340ba174546f69eda8919a76bb4b6eca77 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 30 Apr 2022 00:35:27 +0200 Subject: debian/Makefile: add commit target --- debian/Makefile | 6 ++++++ debian/README.Debian | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'debian') 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 diff --git a/debian/README.Debian b/debian/README.Debian index d83a5d2..a544b75 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -25,8 +25,10 @@ debian/build-area/. make bin make bin/test # Ignores uncommmited changes. - * Tag the last commit in the debian/VERSION format: + * Commit the changes: + git add changelog + make commit make tag * Upload the source package to the PPA: -- cgit v1.2.3