add reference to git version
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 2 Sep 2013 08:45:02 +0000 (10:45 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 2 Sep 2013 08:45:02 +0000 (10:45 +0200)
Makefile
debian/docs [new file with mode: 0644]

index 47daa8b..aecd25c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,8 @@ MAN1DIR=${MANDIR}/man1/
 PERLDIR=${PREFIX}/share/perl5
 
 ARCH=all
+GITVERSION:=$(shell cat .git/refs/heads/master)
+
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
 
 all: ${DEB}
@@ -27,6 +29,7 @@ deb ${DEB}:
        rm -rf build
        rsync -a data/ build
        rsync -a debian/ build/debian
+       echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
        cd build; dpkg-buildpackage -rfakeroot -b -us -uc
        lintian ${DEB}
 
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..8696672
--- /dev/null
@@ -0,0 +1 @@
+debian/SOURCE