]> git.proxmox.com Git - vncterm.git/commitdiff
buildsys: fix setting git revision of build
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 29 May 2023 15:55:43 +0000 (17:55 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 29 May 2023 15:56:10 +0000 (17:56 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index cb5af54b7005d7661aa53b7d94bb2ff4b369aca7..13a3705cce2ea26ee55138f40f1ba4291b36e232 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,6 @@ include /usr/share/dpkg/architecture.mk
 
 PACKAGE=vncterm
 BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
-GITVERSION:=$(shell cat .git/refs/heads/master)
 
 VNCVER=0.9.14
 VNCREL=LibVNCServer-$(VNCVER)
@@ -64,7 +63,7 @@ vncterm.1: vncterm.pod
 $(BUILDDIR):
        rm -rf $@ $@.tmp
        rsync -a . $@.tmp
-       echo "git clone git://git.proxmox.com/git/vncterm.git\\ngit checkout $(GIVERSION)" > $@.tmp/debian/SOURCE
+       echo "git clone git://git.proxmox.com/git/vncterm.git\\ngit checkout $$(git rev-parse HEAD)" > $@.tmp/debian/SOURCE
        mv $@.tmp $@
 
 .PHONY: deb