X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=Makefile;h=11d8cef4b4c1d789c9c5e82be7d4c3e2d30631d0;hp=1b5abadc97c5205602904c0e86bc09cf1feb926a;hb=d9184f4701f593c48813264341c446069f53a8d5;hpb=4630cb951d5b083a6f4c06ada4a7fe4500a4707c diff --git a/Makefile b/Makefile index 1b5abad..11d8cef 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -RELEASE=2.0 +RELEASE=3.1 -VERSION=1.0 +VERSION=3.0 PKGREL=9 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}