[Pkg-javascript-commits] [node-unicode-loose-match] 04/06: Improve rules

Bastien Roucariès rouca at moszumanska.debian.org
Fri Sep 8 15:03:10 UTC 2017


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

rouca pushed a commit to branch master
in repository node-unicode-loose-match.

commit 82a15f6fe5d660d74651517c5e9339728302f963
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Fri Sep 8 16:13:33 2017 +0200

    Improve rules
    
    Use true makefile
---
 debian/control |  2 +-
 debian/rules   | 13 ++++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/debian/control b/debian/control
index b5cd23c..20dd1d1 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: Julien Puydt <julien.puydt at laposte.net>
 Build-Depends: debhelper (>= 10),
-               node-jsesc,
+               node-jsesc (>= 2.2.0),
                node-unicode-property-aliases (>= 1.1.0),
                node-unicode-property-value-aliases (>=1.2.1),
                nodejs
diff --git a/debian/rules b/debian/rules
index 2086610..e0a83f5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,14 +4,17 @@
 	dh $@
 
 dist/scripts/build.js: scripts/build.js
-	mkdir -p $(dir $@)
+	mkdir -p "$(dir $@)"
 	sed -E -e "s,require[(]'unicode-([[:digit:]]+([.])?)+'[)],require('../../debian/BinaryProperty'),g" "$<" > "$@"
 
-override_dh_auto_build: dist/scripts/build.js
-	mkdir -p dist/data
-	(cd dist && npm install unicode-property-aliases unicode-property-value-aliases)
+dist/data/mapping.js: dist/scripts/build.js
+	mkdir -p "$(dir $@)"
 	(cd dist && node scripts/build.js)
 
+
+override_dh_auto_build: dist/data/mapping.js
+
+
 override_dh_auto_clean:
 	rm -rf dist
-	dh_auto_clean
+	dh_auto_clean
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-unicode-loose-match.git



More information about the Pkg-javascript-commits mailing list