Automated version number in deb package

This commit is contained in:
Adrien Bourmault 2024-02-28 10:27:03 +01:00
parent 10d4a51ed1
commit 2d737ee501
Signed by: neox
GPG Key ID: 2974E1D5F25DFCC8
2 changed files with 6 additions and 3 deletions

View File

@ -10,7 +10,7 @@ default: debian/tyto.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
@ -20,7 +20,10 @@ debian/tyto.deb: debian/debian-binary debian/control.tar.gz debian/data.tar.gz
debian/data.tar.gz:
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
debian/debian-binary:

View File

@ -1,5 +1,5 @@
Package: tyto
Version: 1.11.5
Version: VERSION
Section: custom
Priority: optional
Architecture: all