[Pkg-javascript-commits] [node-subarg] 16/17: Upgrade rules
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Aug 25 19:28:12 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-subarg.
commit 002ae548ea688a4fb484365ca30f356189b3e0e1
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Thu Aug 17 22:56:57 2017 +0200
Upgrade rules
---
debian/control | 6 ++++--
debian/examples | 1 +
debian/rules | 16 ++++++++++++++++
3 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 80f37a3..35860da 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,8 @@ Build-Depends:
debhelper (>= 10)
, dh-buildinfo
, nodejs (>= 4)
+ , node-minimist (>= 1.1.0) <!nocheck>
+ , node-tape (>= 4.6) <!nocheck>
Standards-Version: 4.0.1
Homepage: https://github.com/substack/subarg
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-subarg.git
@@ -19,8 +21,8 @@ Depends:
, nodejs (>=4)
, node-minimist (>= 1.1.0)
Description: parse arguments with recursive contexts
- This Node.js module allow to parse command line like argument
- recursivly, thus allowing subarguments.
+ This Node.js module allow one to parse command line like argument
+ recursively, thus allowing subarguments.
.
This module is therefore useful for passing argument to
submodules or plugins.
diff --git a/debian/examples b/debian/examples
new file mode 100644
index 0000000..700b101
--- /dev/null
+++ b/debian/examples
@@ -0,0 +1 @@
+example/*.js
diff --git a/debian/rules b/debian/rules
index de57af0..ab99114 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,22 @@
%:
dh $@
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+ tape test/*.js
+else
+ @echo '**********************************************************'
+ @echo 'Skip test suite '
+ @echo '**********************************************************'
+endif
+
+override_dh_installexamples:
+ dh_installexamples
+ # patch example
+ find $(CURDIR)/debian/node-subarg/usr/share/doc/node-subarg/examples/ -name '*.js' -exec \
+ sed -i "s,require\s*[(]\s*'[.][.][^']*'\s*[)],require('node-subarg'),g" {} \;
+
+
#override_dh_auto_build:
#override_dh_auto_test:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-subarg.git
More information about the Pkg-javascript-commits
mailing list