X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=c2a8e04e661a104913ba781cd4cd2d0f1bd1e6a6;hb=70ea22506939f9687e1146c0f35247cfbe9225b8;hp=91df9ad258e0f851161d9f49fd9e5010e8064048;hpb=e04b9f4c4356b8e5914ae701c0e4004f43061b7e;p=pve-common.git diff --git a/Makefile b/Makefile index 91df9ad..c2a8e04 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ VERSION=5.0 -PKGREL=2 +PKGREL=27 PACKAGE=libpve-common-perl @@ -11,7 +11,7 @@ MAN1DIR=${MANDIR}/man1/ PERLDIR=${PREFIX}/share/perl5 ARCH=all -GITVERSION:=$(shell cat .git/refs/heads/master) +GITVERSION:=$(shell git rev-parse HEAD) DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb @@ -29,12 +29,12 @@ deb ${DEB}: 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 + cd build; dpkg-buildpackage -b -us -uc lintian ${DEB} .PHONY: clean clean: - rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz + rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz *.buildinfo .PHONY: distclean distclean: clean