[Pkg-nagios-changes] [pkg-pnp4nagios] 01/02: Do JS minification with Python's jsmin

Markus Frosch (old DM Account) lazyfrosch-guest at moszumanska.debian.org
Sat Dec 27 21:38:59 UTC 2014


This is an automated email from the git hooks/post-receive script.

lazyfrosch-guest pushed a commit to branch master
in repository pkg-pnp4nagios.

commit 8021d79f62e2af0b83effee58d5e23477ff5da60
Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Sat Dec 27 22:30:15 2014 +0100

    Do JS minification with Python's jsmin
    
    Closes: #769696
---
 debian/control | 3 ++-
 debian/rules   | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index f37d50d..2a6ebfe 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,8 @@ Build-Depends:
     quilt,
     rrdtool,
     librrds-perl,
-    node-uglify
+    python,
+    python-jsmin
 Standards-Version: 3.9.6
 Homepage: http://www.pnp4nagios.org/
 Vcs-Git: git://anonscm.debian.org/pkg-nagios/pkg-pnp4nagios.git
diff --git a/debian/rules b/debian/rules
index 0468ec6..97c7c92 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,8 +21,8 @@ override_dh_auto_configure:
 
 override_dh_auto_build:
 	dh_auto_build -- all
-	uglifyjs share/pnp/media/js/jquery.imgareaselect.js \
-	       > share/pnp/media/js/jquery.imgareaselect.min.js
+	python -m jsmin share/pnp/media/js/jquery.imgareaselect.js \
+	              > share/pnp/media/js/jquery.imgareaselect.min.js
 
 override_dh_auto_install:
 	dh_auto_install -- install-config

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-pnp4nagios.git



More information about the Pkg-nagios-changes mailing list