]> git.proxmox.com Git - fence-agents-pve.git/commitdiff
add reference to git version
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 22 Aug 2013 10:24:06 +0000 (12:24 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 22 Aug 2013 10:24:06 +0000 (12:24 +0200)
Makefile
debian/docs [new file with mode: 0644]

index 9e1e85ffe9399b2432382443103cf50818d13f4c..5d242fb685d78b023d13c06d990d0c7a0f7d70f1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,8 @@ FADIR=fence-agents-${FAVER}
 FASRC=${FADIR}.tar.gz
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+GITVERSION:=$(shell cat .git/refs/heads/master)
+
 DEB=${PACKAGE}_${FAVER}-${PKGREL}_${ARCH}.deb
 
 all: ${DEB}
@@ -16,6 +18,7 @@ ${DEB} deb: ${FASRC}
        tar xf ${FASRC}
        cp -av debian ${FADIR}/debian
        cat ${FADIR}/doc/COPYRIGHT >>${FADIR}/debian/copyright
+       echo "git clone git://git.proxmox.com/git/fence-agents-pve.git\\ngit checkout ${GITVERSION}" > ${FADIR}/debian/SOURCE
        cd ${FADIR}; dpkg-buildpackage -rfakeroot -b -us -uc
        lintian -X copyright-file ${DEB}
 
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..8696672
--- /dev/null
@@ -0,0 +1 @@
+debian/SOURCE