]> git.proxmox.com Git - dab.git/commitdiff
add reference to git version
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 22 Aug 2013 10:07:17 +0000 (12:07 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 22 Aug 2013 10:07:17 +0000 (12:07 +0200)
Makefile

index 3263feb31431b915b51d4ad30882a95966e4ece2..526772f1c654ba01d207697acc3def22a31e7e17 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,8 @@ SCRIPTS=                                      \
        scripts/init_urandom                    \
        scripts/ssh_gen_host_keys               
 
+GITVERSION:=$(shell cat .git/refs/heads/master)
+
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_all.deb
 
 DESTDIR=
@@ -50,6 +52,7 @@ deb ${DEB}: dab dab.1 DAB.pm control changelog.Debian
        sed -e s/@@VERSION@@/${VERSION}/ -e s/@@PKGRELEASE@@/${PKGREL}/ <control >debian/DEBIAN/control
        install -D -m 0644 copyright debian/${DOCDIR}/copyright
        install -m 0644 changelog.Debian debian/${DOCDIR}
+       echo "git clone git://git.proxmox.com/git/dab.git\\ngit checkout ${GITVERSION}" >  debian/${DOCDIR}/SOURCE
        gzip -9 debian/${DOCDIR}/changelog.Debian
        dpkg-deb --build debian 
        mv debian.deb ${DEB}