PKGREL=${VERSION}-${PACKAGERELEASE}
DEB=${PACKAGE}_${PKGREL}_all.deb
-GITVERSION:=$(shell cat .git/refs/heads/master)
+GITVERSION:=$(shell git rev-parse HEAD)
-all: ${DEB}
+BUILDDIR ?= ${PACKAGE}-${VERSION}
+
+all:
+
+${BUILDDIR}: debian
+ rm -rf ${BUILDDIR}
+ rsync -a * ${BUILDDIR}
+ echo "git clone git://git.proxmox.com/git/pve-jslint.git\\ngit checkout $(GITVERSION)" > ${BUILDDIR}/debian/SOURCE
.PHONY: dinstall
dinstall: ${DEB}
.PHONY: deb
deb: ${DEB}
-${DEB}:
- make clean
- rm -rf dest
- mkdir dest
- make DESTDIR=`pwd`/dest install
- 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 -n --best dest/usr/share/doc/${PACKAGE}/changelog.Debian
- fakeroot dpkg-deb --build dest
- mv dest.deb ${DEB}
- rm -rf dest
+${DEB}: ${BUILDDIR}
+ cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
lintian ${DEB}
rhinoed_jslint.js: jslint.js rhino.js
mv $@.tmp $@
install: rhinoed_jslint.js jslint
- mkdir -p ${DESTDIR}/usr/share/${PACKAGE}
+ install -d -m 0755 ${DESTDIR}/usr/share/${PACKAGE}
install -m 0644 rhinoed_jslint.js ${DESTDIR}/usr/share/${PACKAGE}/rhinoed_jslint.js
- mkdir -p ${DESTDIR}/usr/bin
+ install -d -m 0755 ${DESTDIR}/usr/bin
install -m 0755 jslint ${DESTDIR}/usr/bin
jslint.js download:
.PHONY: clean
clean:
- rm -rf *~ dest control rhinoed_jslint.js *.deb
+ rm -rf *~ ${BUILDDIR} rhinoed_jslint.js *.deb *.changes *.buildinfo
.PHONY: upload
upload: ${DEB}
+++ /dev/null
-pve-jslint (1.0-5) unstable; urgency=medium
-
- * collect all errors and show them only after checking all files
-
- * add 'Proxmox' to allowed global variable list
-
- -- Proxmox Support Team <support@proxmox.com> Tue, 22 May 2018 15:00:41 +0200
-
-pve-jslint (1.0-4) unstable; urgency=low
-
- * correctly include jslint file
-
- -- Proxmox Support Team <support@proxmox.com> Fri, 10 Apr 2015 07:08:31 +0200
-
-pve-jslint (1.0-3) unstable; urgency=low
-
- * add FromData to predefined NS
-
- -- Proxmox Support Team <support@proxmox.com> Wed, 09 Nov 2011 10:45:24 +0100
-
-pve-jslint (1.0-2) unstable; urgency=low
-
- * download from http://jslint.com/jslint.js
-
- -- Proxmox Support Team <support@proxmox.com> Fri, 08 Jul 2011 08:22:17 +0200
-
-pve-jslint (1.0-1) unstable; urgency=low
-
- * first try
-
- -- Proxmox Support Team <support@proxmox.com> Thu, 07 Jul 2011 14:47:58 +0200
-
+++ /dev/null
-Package: pve-jslint
-Version: @PKGREL@
-Section: devel
-Priority: optional
-Architecture: all
-Depends: rhino
-Maintainer: Proxmox Support Team <support@proxmox.com>
-Description: JSLint for Proxmox Virtual Environment development
- This package contains a version of jslint used to develop the
- Proxmox Virtual Environment GUI.
+++ /dev/null
-This package was debianized by the Proxmox Support Team
-<support@proxmox.com> on Mon, 30 Mar 2009 06:55:24 -0400.
-
-It was downloaded from <http://jslint.com/jslint.js>
-
-JSLint Copyright:
-
-Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-The Software shall be used for Good, not Evil.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
--- /dev/null
+pve-jslint (1.0-5) unstable; urgency=medium
+
+ * collect all errors and show them only after checking all files
+
+ * add 'Proxmox' to allowed global variable list
+
+ -- Proxmox Support Team <support@proxmox.com> Tue, 22 May 2018 15:00:41 +0200
+
+pve-jslint (1.0-4) unstable; urgency=low
+
+ * correctly include jslint file
+
+ -- Proxmox Support Team <support@proxmox.com> Fri, 10 Apr 2015 07:08:31 +0200
+
+pve-jslint (1.0-3) unstable; urgency=low
+
+ * add FromData to predefined NS
+
+ -- Proxmox Support Team <support@proxmox.com> Wed, 09 Nov 2011 10:45:24 +0100
+
+pve-jslint (1.0-2) unstable; urgency=low
+
+ * download from http://jslint.com/jslint.js
+
+ -- Proxmox Support Team <support@proxmox.com> Fri, 08 Jul 2011 08:22:17 +0200
+
+pve-jslint (1.0-1) unstable; urgency=low
+
+ * first try
+
+ -- Proxmox Support Team <support@proxmox.com> Thu, 07 Jul 2011 14:47:58 +0200
+
--- /dev/null
+Source: pve-jslint
+Section: devel
+Priority: optional
+Maintainer: Proxmox Support Team <support@proxmox.com>
+Standards-Version: 3.9.8
+
+Package: pve-jslint
+Architecture: all
+Depends: rhino
+Description: JSLint for Proxmox Virtual Environment development
+ This package contains a version of jslint used to develop the Proxmox Virtual
+ Environment GUI.
--- /dev/null
+This package was debianized by the Proxmox Support Team
+<support@proxmox.com> on Mon, 30 Mar 2009 06:55:24 -0400.
+
+It was downloaded from <http://jslint.com/jslint.js>
+
+JSLint Copyright:
+
+Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+The Software shall be used for Good, not Evil.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
--- /dev/null
+debian/SOURCE
--- /dev/null
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#export DH_VERBOSE = 1
+
+%:
+ dh $@