]> git.proxmox.com Git - smartmontools.git/commitdiff
record git commit ID in .deb
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 11 Oct 2016 11:35:15 +0000 (13:35 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 11 Oct 2016 11:35:15 +0000 (13:35 +0200)
Makefile

index 5e1241d819241e46b825f6335a3c268d76923d73..c24dfcd80d837b914714f172a2537ef2430f5607 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,8 @@ deb ${DEB}: submodule
        rm -rf ${SRCDIR}.tmp
        cp -rpa ${SRCDIR} ${SRCDIR}.tmp
        cd ${SRCDIR}.tmp; patch -p1 < ../patches/update_changelog.patch
+       echo "git clone git://git.proxmox.com/git/smartmontools.git\\ngit checkout ${GITVERSION}" >  ${SRCDIR}.tmp/debian/SOURCE
+       echo "debian/SOURCE" >> ${SRCDIR}.tmp/debian/docs
        cd ${SRCDIR}.tmp; dpkg-buildpackage -rfakeroot -b -uc -us
        lintian ${DEB}
        @echo ${DEB}