]> git.proxmox.com Git - glusterfs.git/commitdiff
add reference to git version
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 23 Aug 2013 05:10:25 +0000 (07:10 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 23 Aug 2013 05:10:25 +0000 (07:10 +0200)
Makefile

index a7e02779f627d963897880749921dbde018a3f07..01f9557bf0be5f5d2370ada00629f779904d2583 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,8 @@ GLUSTERFSDIR=glusterfs-${GLUSTERFSVER}
 DEBSRC=glusterfs_${GLUSTERFSVER}-${DEBRELEASE}.debian.tar.gz
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+GITVERSION:=$(shell cat .git/refs/heads/master)
+SOURCETXT="git clone git://git.proxmox.com/git/glusterfs.git\\ngit checkout ${GITVERSION}"
 
 DEBS=                                                                  \
        glusterfs-common_${GLUSTERFSVER}-${DEBRELEASE}_${ARCH}.deb      \
@@ -25,6 +27,10 @@ deb ${DEBS}: ${GLUSTERFSSRC} ${DEBSRC}
        rm -rf ${GLUSTERFSDIR}
        tar xf ${GLUSTERFSSRC}
        cd ${GLUSTERFSDIR}; tar xvf ../${DEBSRC}
+       echo "${SOURCETXT}" > ${GLUSTERFSDIR}/debian/SOURCE
+       echo "debian/SOURCE" >>${GLUSTERFSDIR}/debian/glusterfs-server.docs
+       echo "debian/SOURCE" >>${GLUSTERFSDIR}/debian/glusterfs-common.docs
+       echo "debian/SOURCE" >>${GLUSTERFSDIR}/debian/glusterfs-client.docs
        # Hack - create missing log directory
        echo "/var/log/glusterfs" >> ${GLUSTERFSDIR}/debian/glusterfs-client.dirs
        cd ${GLUSTERFSDIR}; dpkg-buildpackage -b -uc -us