From 9cd47455755dfa078eca0548843bba0eec0b5144 Mon Sep 17 00:00:00 2001 From: "cam.lafit" Date: Fri, 19 Nov 2021 12:14:34 +0100 Subject: [PATCH] Don't update changelog when it's a release * When we build a release, changelog must be set manualy before --- debian/rules | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 588bdf4..ba9a9b2 100755 --- a/debian/rules +++ b/debian/rules @@ -17,14 +17,16 @@ ifeq ($(strip $(VERSION)),) export VERSION="0.0.0" endif VERSION:=$(VERSION)+$(shell date +'%y%m%d%H%M%S') + IS_NIGHTLY=1 endif clean: dh clean rm -f debian/files (git rev-parse --git-dir > /dev/null 2>&1 && git checkout debian/changelog) || true +ifeq ($(strip $(IS_NIGHTLY)),1) (git rev-parse --git-dir > /dev/null 2>&1 && dch -m -b -v $(VERSION) autobuild) || true - +endif %: dh $@