[Pkg-javascript-commits] [datatables-extensions] 09/17: Re-compress JS files at installation step
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 bfdab418358589eebfbc51c19b4cb60afc017733
Author: Andreas Tille <tille at debian.org>
Date: Wed Jan 3 07:45:43 2018 +0100
Re-compress JS files at installation step
---
debian/control | 3 +--
debian/rules | 10 ++++++++++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 9becc5b..b2c717c 100644
--- a/debian/control
+++ b/debian/control
@@ -4,8 +4,7 @@ Uploaders: Andreas Tille <tille at debian.org>
Section: web
Priority: optional
Build-Depends: debhelper (>= 10),
- closure-compiler,
- ruby-sass
+ closure-compiler
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 6055261..10faecc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,5 +2,15 @@
# DH_VERBOSE := 1
+TARGETDIR=$(CURDIR)debian/tmp/usr/share/javascript/jquery-datatables-extensions
+
%:
dh $@
+
+override_dh_install:
+ dh_install
+ mkdir -p $(TARGETDIR)
+ for min in `find [A-Z]* -name "*.min.*"` ; do \
+ mkdir -p $(TARGETDIR)/`dirname $${min}` ; \
+ closure-compiler `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