mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-02 03:06:41 +00:00
debian: give incrementing version numbers to .deb packages, using timestamps
This commit is contained in:
parent
2566452091
commit
3252f2c317
28
Makefile
28
Makefile
@ -58,14 +58,36 @@ create_dirs:
|
|||||||
mkdir -p client-basedir/storage
|
mkdir -p client-basedir/storage
|
||||||
mkdir -p client-basedir2/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
|
rm -f debian
|
||||||
ln -s dapper/debian debian
|
ln -s dapper/debian debian
|
||||||
chmod a+x debian/rules
|
chmod a+x debian/rules
|
||||||
fakeroot debian/rules binary
|
|
||||||
|
|
||||||
deb-sid:
|
setup-sid:
|
||||||
rm -f debian
|
rm -f debian
|
||||||
ln -s sid/debian debian
|
ln -s sid/debian debian
|
||||||
chmod a+x debian/rules
|
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
|
fakeroot debian/rules binary
|
||||||
|
Loading…
Reference in New Issue
Block a user