[Pkg-javascript-commits] [libjs-jsxc] 15/16: minify js files during build

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sat Jan 10 18:20:35 UTC 2015


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

praveen pushed a commit to branch master
in repository libjs-jsxc.

commit ca28c8f56cb441c7be61f1f4f7b0411e5fc0f6ad
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Sat Jan 10 23:25:11 2015 +0530

    minify js files during build
---
 debian/rules | 29 +++++++----------------------
 1 file changed, 7 insertions(+), 22 deletions(-)

diff --git a/debian/rules b/debian/rules
index ce15cce..f6f96c6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,30 +3,15 @@
 # output every command that modifies files on the build system.
 #DH_VERBOSE = 1
 
-# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
-DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/default.mk
-
-# see FEATURE AREAS in dpkg-buildflags(1)
-#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-
-# see ENVIRONMENT in dpkg-buildflags(1)
-# package maintainers to append CFLAGS
-#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
-# package maintainers to append LDFLAGS
-#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
-
-
-# main packaging script based on dh7 syntax
 %:
 	dh $@ 
 
-# debmake generated override targets
-# This is example for Cmake (See http://bugs.debian.org/641051 )
-#override_dh_auto_configure:
-#	dh_auto_configure -- \
-#	-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
-
-
+override_dh_auto_build:
+	yui-compressor -o jsxc.min.js jsxc.js
+	yui-compressor -o lib/jsxc.dep.min.js lib/jsxc.dep.js
+	yui-compressor -o lib/otr/build/otr.min.js lib/otr/build/otr.js
 
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f jsxc.min.js lib/jsxc.dep.min.js lib/otr/build/otr.min.js
 

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



More information about the Pkg-javascript-commits mailing list