From 0fe26c625757fd8a45790249663442ddca1c2c1d Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 2 Sep 2013 10:48:31 +0200 Subject: [PATCH] add reference to git version --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 29503cf..478e610 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ PACKAGERELEASE=3 PKGREL=${VERSION}-${PACKAGERELEASE} DEB=${PACKAGE}_${PKGREL}_all.deb +GITVERSION:=$(shell cat .git/refs/heads/master) all: ${DEB} @@ -22,6 +23,7 @@ ${DEB} deb: mkdir dest/DEBIAN sed -e 's/@PKGREL@/${PKGREL}/' dest/DEBIAN/control mkdir -p dest/usr/share/doc/${PACKAGE} + echo "git clone git://git.proxmox.com/git/pve-jslint.git\\ngit checkout ${GITVERSION}" > dest/usr/share/doc/${PACKAGE}/SOURCE install -m 0644 copyright dest/usr/share/doc/${PACKAGE} install -m 0644 changelog.Debian dest/usr/share/doc/${PACKAGE} gzip --best dest/usr/share/doc/${PACKAGE}/changelog.Debian