]> git.proxmox.com Git - pve-docs.git/commitdiff
add reference to source repository
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 7 Apr 2016 10:19:44 +0000 (12:19 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 7 Apr 2016 10:19:44 +0000 (12:19 +0200)
Makefile

index 6896e254fde247869cfcbabddc33327e70f11f50..a2abf89e56bea326964eea8d134ff239b846bfe0 100644 (file)
--- 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