put the gui git version in the .deb

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-03 17:03:19 -06:00
parent c2ac957162
commit e20dc8e46e
1 changed files with 3 additions and 0 deletions

3
debian/Makefile vendored
View File

@ -1,4 +1,5 @@
# GITVERSION=$(shell git rev-parse FETCH_HEAD)
GUIVERSION=$(shell cd ../../gui && git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//')
VERSION=$(shell git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//')
BASENAME=go-wit-gui
@ -8,6 +9,7 @@ all: help deb
help:
@echo
@echo "make deb # attempt to build the .deb package using dpkg"
@echo "make rpm # attempt to build a .rpm package"
@echo
deb: clean extract DEBIAN build
@ -35,6 +37,7 @@ DEBIAN:
mkdir -p DEBIAN
cp control DEBIAN/
echo Version: ${VERSION} >>DEBIAN/control
echo GuiVersion: ${GUIVERSION} >>DEBIAN/control
cp postinst DEBIAN