]> git.proxmox.com Git - pve-common.git/commitdiff
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 47daa8b20f4ccafaff26d9787ba4ce06bfc4cc62..aecd25c0874504dd8040ea9ff613a2656c8b7ba0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,8 @@ MAN1DIR=${MANDIR}/man1/
 PERLDIR=${PREFIX}/share/perl5
 
 ARCH=all
 PERLDIR=${PREFIX}/share/perl5
 
 ARCH=all
+GITVERSION:=$(shell cat .git/refs/heads/master)
+
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
 
 all: ${DEB}
 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
        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}
 
        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