]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
ship commit hash and repo we build from
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 30 Mar 2019 11:57:19 +0000 (12:57 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 30 Mar 2019 11:57:19 +0000 (12:57 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile
debian/docs [new file with mode: 0644]

index 2acc225d36c82ecc428b629c40330a66ef38cbcd..09502381d14ceea016a86f77092c65ce35d66a6b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ PKGVER=1.0
 PKGREL=24
 
 BUILDDIR ?= build
+GITVERSION:=$(shell git rev-parse HEAD)
 
 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
 DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc
@@ -60,6 +61,7 @@ all:
 ${BUILDDIR}:
        rm -rf ${BUILDDIR}
        rsync -a * ${BUILDDIR}
+       echo "git clone git://git.proxmox.com/git/proxmox-widget-toolkit.git\\ngit checkout ${GITVERSION}" >  ${BUILDDIR}/debian/SOURCE
 
 .PHONY: deb
 deb: ${DEB}
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..8696672
--- /dev/null
@@ -0,0 +1 @@
+debian/SOURCE