deb: debclean
debuild binary-indep
-.PHONY: all install uninstall clean debclean deb
+build: debclean
+ ./genchangelog $(B)
+ git commit -m "changelog updated" ./debian/changelog
+ git tag -f v$(B)
+ git push -f origin v$(B)
+ $(MAKE) deb
+
+.PHONY: all install uninstall clean debclean deb build
--- /dev/null
+#!/bin/sh
+BUILD=${1%.0}
+
+cat <<CHANGELOG > ./debian/changelog.new
+dbuscron (${BUILD}-1) unstable; urgency=low
+
+ * Next release:
+
+ `git shortlog $(git describe --tags --abbrev=0)..HEAD`
+
+ -- Konstantin Stepanov <kstep@p-nut.info> `LC_ALL=C date +'%a, %e %b %Y %T %z'`
+
+CHANGELOG
+
+cat ./debian/changelog >> ./debian/changelog.new && mv -f ./debian/changelog.new ./debian/changelog
+