add reference to git version

This commit is contained in:
Dietmar Maurer 2013-09-02 10:48:31 +02:00
parent b5bd7e798e
commit 0fe26c6257

View File

@ -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}/' <control.in >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