summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-03 17:03:19 -0600
committerJeff Carr <[email protected]>2024-01-03 17:03:19 -0600
commite20dc8e46ecfe69f187ddd7dcf0d1b0f56b92781 (patch)
treeea7dfe0cf71cf3cee2ca6a7cc4918447fcfac07a
parentc2ac957162b5f627c721e4419ecd3b54dcb95c0b (diff)
put the gui git version in the .debv0.2.1
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--debian/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/Makefile b/debian/Makefile
index 7f4691f..993769d 100644
--- a/debian/Makefile
+++ b/debian/Makefile
@@ -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