[pve-devel] [PATCH novnc v2 1/2] buildsys: write actual checked out git revision to SOURCE

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Jan 23 08:19:55 CET 2018


---

changes v1 -> v2:
* do not export SOURCE_DATE_EPOCH, already done by
  /usr/share/dpkg/pkg-info.mk

 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 70d1925..537cd70 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,8 @@ PKGREL=4
 SRCDIR=novnc
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
-GITVERSION:=$(shell cat .git/refs/heads/master)
+
+GITVERSION:=$(shell git rev-parse HEAD)
 
 DEB=${PACKAGE}_${VER}-${PKGREL}_${ARCH}.deb
 
-- 
2.14.2





More information about the pve-devel mailing list