From: Dietmar Maurer Date: Mon, 2 Sep 2013 08:45:02 +0000 (+0200) Subject: add reference to git version X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=b98a06a32c7634c3c17262be270cc402dbebbe55 add reference to git version --- diff --git a/Makefile b/Makefile index 47daa8b..aecd25c 100644 --- 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 index 0000000..8696672 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +debian/SOURCE