From b98a06a32c7634c3c17262be270cc402dbebbe55 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 2 Sep 2013 10:45:02 +0200 Subject: [PATCH] add reference to git version --- Makefile | 3 +++ debian/docs | 1 + 2 files changed, 4 insertions(+) create mode 100644 debian/docs 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 -- 2.39.2