X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=e0e9d10530e55bebfb461d33286645205307a943;hb=ed5880acdc77673c98ac25fcc4c58201832b9de7;hp=d9f1ac7d624622601b4d7d338b06844ad5e634d7;hpb=36ac0df3f36bbaae3fed13b7db4039b2eb1741b2;p=pve-common.git diff --git a/Makefile b/Makefile index d9f1ac7..e0e9d10 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ -RELEASE=2.1 +RELEASE=4.0 -VERSION=1.0 -PKGREL=29 +VERSION=4.0 +PKGREL=2 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} @@ -25,8 +27,9 @@ dinstall: deb .PHONY: deb deb ${DEB}: rm -rf build - rsync -a data/ build + rsync -a src/ 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}