[Pkg-javascript-commits] [node-unicode-tr51] 01/01: Improve rules
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Aug 24 21:40:14 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-tr51.
commit 7e42828534e8c088bb5c3a5f317bffe5388e6fd8
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Thu Aug 24 23:33:16 2017 +0200
Improve rules
---
debian/rules | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/debian/rules b/debian/rules
index f503fbe..7acb863 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,12 +3,18 @@
%:
dh $@
+DIR_DIST=data scripts tests
+
override_dh_auto_build:
mkdir dist
- (cd dist ; node ../scripts/parse-emoji-data.js)
- (cd dist ; node ../scripts/parse-emoji-sequences.js)
+ set -e ; for d in $(DIR_DIST); do \
+ cp -r $$d dist/; \
+ done
+ cd dist && node scripts/parse-emoji-data.js
+ cd dist && node scripts/parse-emoji-sequences.js
override_dh_auto_clean:
+ dh_auto_clean
rm -rf dist
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
@@ -16,7 +22,7 @@ override_dh_auto_test:
@echo '**********************************************************'
@echo ' Run package test suite'
@echo '**********************************************************'
- mocha tests/tests.js
+ cd dist && mocha tests/tests.js
else
override_dh_auto_test:
@echo '**********************************************************'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-unicode-tr51.git
More information about the Pkg-javascript-commits
mailing list