X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=Makefile;h=9f259112a9dfe892ce850888164ae6b78b09b833;hp=a1568cf12ceac59934eab1255ab85417bfbcd2f2;hb=47e4eb112911b530d0646c1808fd06cbeb921572;hpb=910d57b0b0a05dab7053ba437bde4be7c6837728 diff --git a/Makefile b/Makefile index a1568cf..9f25911 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ -RELEASE=2.0 +RELEASE=4.0 -VERSION=1.0 -PKGREL=12 +VERSION=4.0 +PKGREL=1 PACKAGE=libpve-common-perl @@ -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}