Automated version number in deb package
This commit is contained in:
parent
10d4a51ed1
commit
2d737ee501
7
Makefile
7
Makefile
|
@ -10,7 +10,7 @@ default: debian/tyto.deb
|
||||||
|
|
||||||
### MAKE DEB
|
### MAKE DEB
|
||||||
|
|
||||||
.INTERMEDIATE: debian/debian-binary debian/control.tar.gz debian/data.tar.gz
|
.INTERMEDIATE: debian/control debian/debian-binary debian/control.tar.gz debian/data.tar.gz
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
|
@ -20,7 +20,10 @@ debian/tyto.deb: debian/debian-binary debian/control.tar.gz debian/data.tar.gz
|
||||||
debian/data.tar.gz:
|
debian/data.tar.gz:
|
||||||
cd src && tar czvf ../debian/data.tar.gz usr var
|
cd src && tar czvf ../debian/data.tar.gz usr var
|
||||||
|
|
||||||
debian/control.tar.gz:
|
debian/control: debian/control_template
|
||||||
|
cat $< | sed "s/VERSION/`git describe --tags`/g" > $@
|
||||||
|
|
||||||
|
debian/control.tar.gz: debian/control
|
||||||
tar czvf debian/control.tar.gz debian/control #preinst postinst prerm postrm
|
tar czvf debian/control.tar.gz debian/control #preinst postinst prerm postrm
|
||||||
|
|
||||||
debian/debian-binary:
|
debian/debian-binary:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Package: tyto
|
Package: tyto
|
||||||
Version: 1.11.5
|
Version: VERSION
|
||||||
Section: custom
|
Section: custom
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: all
|
Architecture: all
|
Loading…
Reference in New Issue