Correction for an error with deb generation

This commit is contained in:
Adrien Bourmault 2024-02-28 11:01:35 +01:00
parent 6d6dceba1d
commit da2387dc48
Signed by: neox
GPG Key ID: 2974E1D5F25DFCC8
1 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@
default: debian/tyto.deb default: debian/tyto.deb
VERSION=$(shell git describe --tags | cut -c 2-)
### MAKE DEB ### MAKE DEB
.INTERMEDIATE: debian/control 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
@ -21,7 +23,7 @@ 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: debian/control_template debian/control: debian/control_template
cat $< | sed "s/VERSION/`git describe --tags`/g" > $@ cat $< | sed "s/VERSION/$(VERSION)/g" > $@
debian/control.tar.gz: debian/control debian/control.tar.gz: debian/control
cd debian && tar czvf control.tar.gz control #preinst postinst prerm postrm cd debian && tar czvf control.tar.gz control #preinst postinst prerm postrm