From: Dietmar Maurer Date: Thu, 7 Apr 2016 10:19:44 +0000 (+0200) Subject: add reference to source repository X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=commitdiff_plain;h=b4f3c18ad49d5facd494cc3baa6006e0ee36eeae add reference to source repository --- diff --git a/Makefile b/Makefile index 6896e25..a2abf89 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,8 @@ PACKAGE=pve-doc-generator # also update debian/changelog PKGREL=1 +GITVERSION:=$(shell cat .git/refs/heads/master) + DEB=${PACKAGE}_${DOCRELEASE}-${PKGREL}_amd64.deb @@ -152,6 +154,8 @@ ${DEB} deb: mkdir build rsync -a debian/ build/debian mkdir -p build/usr/share/${PACKAGE} + mkdir -p build/usr/share/doc/${PACKAGE} + echo "git clone git://git.proxmox.com/git/pve-docs.git\\ngit checkout ${GITVERSION}" > build/usr/share/doc/${PACKAGE}/SOURCE install -m 0644 ${DEB_SOURCES} build/usr/share/${PACKAGE} install -m 0755 ${GEN_SCRIPTS} build/usr/share/${PACKAGE} cd build; dpkg-buildpackage -rfakeroot -b -us -uc