]> git.proxmox.com Git - pve-qemu-kvm.git/commitdiff
add reference to git version
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 2 Sep 2013 09:19:44 +0000 (11:19 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 2 Sep 2013 09:19:44 +0000 (11:19 +0200)
Makefile
debian/docs [new file with mode: 0644]

index c28030ba49c3524c1b015adea75ed0515a17a303..21839ae71bccdd2042790356d761ef5b6f4e974d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ KVMDIR=qemu-kvm
 KVMSRC=${KVMDIR}-src.tar.gz
 
 ARCH=amd64
+GITVERSION:=$(shell cat .git/refs/heads/master)
 
 KVM_DEB=${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}_${ARCH}.deb
 
@@ -25,6 +26,7 @@ ${KVM_DEB} kvm: ${KVMSRC}
        rm -rf ${KVMDIR}
        tar xf ${KVMSRC} 
        cp -a debian ${KVMDIR}/debian
+       echo "git clone git://git.proxmox.com/git/pve-qemu-kvm.git\\ngit checkout ${GITVERSION}" > ${KVMDIR}/debian/SOURCE
        cd ${KVMDIR}; dpkg-buildpackage -b -rfakeroot -us -uc
        lintian ${KVM_DEB} || true
 
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..8696672
--- /dev/null
@@ -0,0 +1 @@
+debian/SOURCE