X-Git-Url: https://git.proxmox.com/?p=pve-apiclient.git;a=blobdiff_plain;f=Makefile;h=c02ba14fa87b0ec8357ec078346cdeb22d638d2f;hp=7401d08da273510ab459dd62ddbd2285ef9e49be;hb=70b5c2059acb1450f6d6e794c8cdca66547691e4;hpb=2d805336297a1e6ab6666b1e9d0291c74b2ad986 diff --git a/Makefile b/Makefile index 7401d08..c02ba14 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ PACKAGE=libpve-apiclient-perl -PKGVER=2.0 -PKGREL=4 +PKGVER=$(shell dpkg-parsechangelog -Sversion | cut -d- -f1) +PKGREL=$(shell dpkg-parsechangelog -Sversion | cut -d- -f2) BUILDSRC := $(PACKAGE)-$(PKGVER) DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb @@ -14,6 +14,7 @@ DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE} PVE_COMMON_FILES= \ Exception.pm +GITVERSION:=$(shell git rev-parse HEAD) all: ${DEB} @@ -22,6 +23,7 @@ $(BUILDSRC): rm -rf $(BUILDSRC) rsync -a debian $(BUILDSRC) make DESTDIR=./$(BUILDSRC) install + echo "git clone git://git.proxmox.com/git/pve-apiclient.git\\ngit checkout ${GITVERSION}" > $(BUILDSRC)/debian/SOURCE .PHONY: deb deb ${DEB}: $(BUILDSRC)