[Pkg-javascript-commits] [backbone] 26/97: Use uglifyjs as compressor (keeping yui-compressor as fallback to ease backporting).

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:55:57 UTC 2014


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

js pushed a commit to branch master
in repository backbone.

commit 8727a2a183687b31ed24961226ceeb77e019682e
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sat Aug 20 18:02:20 2011 +0200

    Use uglifyjs as compressor (keeping yui-compressor as fallback to ease backporting).
---
 debian/rules | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index f47dcc7..d29607b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,9 +35,12 @@ DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^docs/images/.*\.(jpg|png)|debian/(changelog|
 DEB_INSTALL_DOCS_libjs-backbone += index.html
 DEB_INSTALL_EXAMPLES_libjs-backbone += examples/*
 
-CDBS_BUILD_DEPENDS += , yui-compressor
+# Ease backporting (libnode-uglify is tough to backport)
+# TODO: drop fallback-dependency after Squeeze
+CDBS_BUILD_DEPENDS += , libnode-uglify | yui-compressor
+js-compressor := $(or $(notdir $(shell which uglifyjs)),yui-compressor)
 
 build/libjs-backbone::
-	yui-compressor backbone.js -o debian/backbone.min.js
+	$(js-compressor) backbone.js -o debian/backbone.min.js
 clean::
 	rm -f debian/*.js

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



More information about the Pkg-javascript-commits mailing list