[Pkg-javascript-commits] [datatables-extensions] 13/17: Compress css separately

Andreas Tille tille at debian.org
Wed Jan 3 07:44:02 UTC 2018


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

tille pushed a commit to branch master
in repository datatables-extensions.

commit 4c3bf33274232001589018c323ada9d99cd3c003
Author: Andreas Tille <tille at debian.org>
Date:   Wed Jan 3 08:06:38 2018 +0100

    Compress css separately
---
 debian/control |  5 +++--
 debian/rules   | 10 +++++++---
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index b2c717c..6d749a5 100644
--- a/debian/control
+++ b/debian/control
@@ -1,10 +1,11 @@
 Source: datatables-extensions
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: Andreas Tille <tille at debian.org>
-Section: web
+Section: javascript
 Priority: optional
 Build-Depends: debhelper (>= 10),
-               closure-compiler
+               closure-compiler,
+               ruby-sass
 Standards-Version: 4.1.3
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/datatables-extensions.git
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/datatables-extensions.git
diff --git a/debian/rules b/debian/rules
index 10faecc..c8a7126 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,7 @@
 
 # DH_VERBOSE := 1
 
-TARGETDIR=$(CURDIR)debian/tmp/usr/share/javascript/jquery-datatables-extensions
+TARGETDIR=$(CURDIR)/debian/`dh_listpackages`/usr/share/javascript/jquery-datatables-extensions
 
 %:
 	dh $@
@@ -10,7 +10,11 @@ TARGETDIR=$(CURDIR)debian/tmp/usr/share/javascript/jquery-datatables-extensions
 override_dh_install:
 	dh_install
 	mkdir -p $(TARGETDIR)
-	for min in `find [A-Z]* -name "*.min.*"` ; do \
+	for min in `find [A-Z]* -name "*.min.js"` ; do \
 	    mkdir -p $(TARGETDIR)/`dirname $${min}` ; \
-	    closure-compiler `echo $${min} | sed 's/\.min//'` > $(TARGETDIR)/$${min} ; \
+	    closure-compiler  --charset 'utf-8' --js `echo $${min} | sed 's/\.min//'` --js_output_file $(TARGETDIR)/$${min} ; \
+	done
+	for min in `find [A-Z]* -name "*.min.css"` ; do \
+	    mkdir -p $(TARGETDIR)/`dirname $${min}` ; \
+	    sass --scss --stop-on-error --style compressed `echo $${min} | sed 's/\.min//'` > $(TARGETDIR)/$${min} ; \
 	done

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



More information about the Pkg-javascript-commits mailing list