]> git.proxmox.com Git - pve-storage.git/commitdiff
add reference to git version
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 5 Sep 2013 11:02:40 +0000 (13:02 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 5 Sep 2013 11:02:40 +0000 (13:02 +0200)
Makefile

index 7adebb3349e6ac7f93e8f812ee308fb589558a70..9b877e78ff32ccf0d4a7ab8eced9f9c56a5b8170 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,8 @@ export PERLDIR=${PREFIX}/share/perl5
 
 #ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 ARCH=all
+GITVERSION:=$(shell cat .git/refs/heads/master)
+
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
 
 
@@ -53,6 +55,7 @@ deb ${DEB}:
        install -D -m 0644 copyright debian/${DOCDIR}/copyright
        install -m 0644 changelog.Debian debian/${DOCDIR}/
        gzip -9 debian/${DOCDIR}/changelog.Debian
+       echo "git clone git://git.proxmox.com/git/pve-storage.git\\ngit checkout ${GITVERSION}" > debian/${DOCDIR}/SOURCE
        dpkg-deb --build debian 
        mv debian.deb ${DEB}
        rm -rf debian