[Pkg-javascript-commits] [node-findup-sync] 01/01: minify libs

matthew pideil mpideil-guest at moszumanska.debian.org
Mon Mar 31 12:21:20 UTC 2014


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

mpideil-guest pushed a commit to branch master
in repository node-findup-sync.

commit 1d4297cb18f70df9645bb4b2e9d31bd4b3a2ab69
Author: Matthew Pideil <matthewp_debian at teledetection.fr>
Date:   Mon Mar 31 12:11:01 2014 +0000

    minify libs
---
 debian/control |  5 +++--
 debian/install |  2 +-
 debian/rules   | 15 ++++++++++++++-
 3 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/debian/control b/debian/control
index 7d1a72e..3f96f3f 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,8 @@ Section: web
 Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: Matthew Pideil <matthewp_debian at teledetection.fr>
-Build-Depends: debhelper (>= 9.0.0)
+Build-Depends: debhelper (>= 9.0.0),
+ node-uglify | yui-compressor
 Standards-Version: 3.9.5
 Homepage: https://github.com/cowboy/node-findup-sync
 Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-findup-sync.git
@@ -13,7 +14,7 @@ Package: node-findup-sync
 Architecture: all
 Depends: ${shlibs:Depends}, ${misc:Depends}, nodejs, node-glob, node-lodash
 Recommends: javascript-common
-Description: Findup-sync module for Node.js, event-based server-side
+Description: Filename searcher module for Node.js, event-based server-side
  javascript engine.
  Find the first file matching a given pattern in the current directory or the
  nearest ancestor directory.
diff --git a/debian/install b/debian/install
index f90c7c5..8468caf 100644
--- a/debian/install
+++ b/debian/install
@@ -1 +1 @@
-lib/*	/usr/lib/nodejs/
+debian/build/*	/usr/lib/nodejs/
diff --git a/debian/rules b/debian/rules
index 79fd842..4de0afc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,5 +4,18 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+js-compressor := $(or $(notdir $(shell which uglifyjs)),yui-compressor)
+
 %:
-	dh $@ 
+	dh $@
+
+override_dh_auto_build:
+	dh_auto_build
+	if [ ! -d debian/build ]; \
+	then mkdir debian/build; \
+	fi; \
+	for _FILE in lib/*.js ; \
+	do \
+		cp $${_FILE} debian/build/; \
+		$(js-compressor)  -o debian/build/$$(basename $${_FILE} .js).min.js $${_FILE}; \
+	done

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



More information about the Pkg-javascript-commits mailing list