[pve-devel] [PATCH 1/2] buildsys: set SOURCE_DATE_EPOCH and use actual git revision
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri Jan 19 09:04:52 CET 2018
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 70d1925..06a08ec 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,9 @@ PKGREL=4
SRCDIR=novnc
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
-GITVERSION:=$(shell cat .git/refs/heads/master)
+
+GITVERSION:=$(shell git rev-parse HEAD)
+export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp)
DEB=${PACKAGE}_${VER}-${PKGREL}_${ARCH}.deb
--
2.14.2
More information about the pve-devel
mailing list