From: Brian Warner Date: Sat, 6 Jan 2007 03:06:51 +0000 (-0700) Subject: debian: give incrementing version numbers to .deb packages, using timestamps X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~392 X-Git-Url: https://git.rkrishnan.org/schema.xhtml?a=commitdiff_plain;h=3252f2c317af23c4fe9d46cdd47400d061277491;p=tahoe-lafs%2Ftahoe-lafs.git debian: give incrementing version numbers to .deb packages, using timestamps --- diff --git a/Makefile b/Makefile index efac3630..de82725c 100644 --- a/Makefile +++ b/Makefile @@ -58,14 +58,36 @@ create_dirs: mkdir -p client-basedir/storage mkdir -p client-basedir2/storage -deb-dapper: +DEBVER=`head -1 debian/changelog | sed -e 's/^[^(]*(\([^)]*\)).*$$/\1/' | sed -e 's/^\([0-9]\+\.[0-9]\+\.[0-9]\+\).*$$/\1/'` +DEBSTRING=$(DEBVER)-T`date +%s` +DEBCOMMENTS="'make deb' build" + +show: + echo $(DEBVER) + echo $(DEBSTRING) + +.PHONY: setup-dapper setup-sid deb-dapper deb-sid increment-deb-version +.PHONY: deb-dapper-head deb-sid-head + +setup-dapper: rm -f debian ln -s dapper/debian debian chmod a+x debian/rules - fakeroot debian/rules binary -deb-sid: +setup-sid: rm -f debian ln -s sid/debian debian chmod a+x debian/rules + + +deb-dapper: setup-dapper + fakeroot debian/rules binary +deb-sid: setup-sid + fakeroot debian/rules binary + +increment-deb-version: + debchange --newversion $(DEBSTRING) $(DEBCOMMENTS) +deb-dapper-head: setup-dapper increment-deb-version + fakeroot debian/rules binary +deb-sid-head: setup-sid increment-deb-version fakeroot debian/rules binary