Skip to content

Commit

Permalink
Don't update changelog when it's a release
Browse files Browse the repository at this point in the history
* When we build a release, changelog must be set manualy before
  • Loading branch information
camlafit committed Nov 22, 2021
1 parent b436230 commit 9cd4745
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@

0 comments on commit 9cd4745

Please sign in to comment.