]> git.proxmox.com Git - pve-storage.git/blobdiff - Makefile
refactor finding next diskname for all plugins
[pve-storage.git] / Makefile
index a74bf4b2f552e0079d85ac298465f484c5f1aa3b..876960ab97d545685aff116181d45fc98585f376 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 VERSION=5.0
 PACKAGE=libpve-storage-perl
-PKGREL=5
+PKGREL=26
 
 DESTDIR=
 PREFIX=/usr
@@ -16,7 +16,7 @@ export PERLDIR=${PREFIX}/share/perl5
 export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp)
 
 ARCH=all
-GITVERSION:=$(shell cat .git/refs/heads/master)
+GITVERSION:=$(shell git rev-parse HEAD)
 
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
 
@@ -50,7 +50,7 @@ ${DEB}:
        rm -rf build
        rsync -a * build
        echo "git clone git://git.proxmox.com/git/pve-storage.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: test