From 36ad0763f4f42e2b008093e34ec9bc28ce052e52 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 2 Sep 2013 10:32:39 +0200 Subject: [PATCH] add reference to git version --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index e75741c..3782c98 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,8 @@ MAN1DIR=${MANDIR}/man1/ export PERLDIR=${PREFIX}/share/perl5 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) +GITVERSION:=$(shell cat .git/refs/heads/master) + DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb all: ${DEB} @@ -51,6 +53,7 @@ deb ${DEB}: make DESTDIR=`pwd`/build install install -d -m 0755 build/DEBIAN sed -e s/@@VERSION@@/${VERSION}/ -e s/@@PKGRELEASE@@/${PKGREL}/ -e s/@@ARCH@@/${ARCH}/ build/DEBIAN/control + echo "git clone git://git.proxmox.com/git/pve-access-control.git\\ngit checkout ${GITVERSION}" > build/${DOCDIR}/SOURCE install -D -m 0644 copyright build/${DOCDIR}/copyright install -m 0644 changelog.Debian build/${DOCDIR}/ gzip -9 build/${DOCDIR}/changelog.Debian -- 2.39.2