[Pkg-javascript-commits] [node-glob] 05/07: Run testsuite and fix example
Bastien Roucariès
rouca at moszumanska.debian.org
Sun Aug 13 21:26:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-glob.
commit 73266ec37744ccc6072f3dc76006621db293e2ba
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Sun Aug 13 23:14:25 2017 +0200
Run testsuite and fix example
---
debian/changelog | 2 ++
debian/rules | 7 +++++++
2 files changed, 9 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 893f973..5b680af 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
node-glob (7.1.2-1) unstable; urgency=medium
+ * Team upload
* New upstream version, needed for tape
+ * Fix example, run testsuite
-- Bastien Roucariès <rouca at debian.org> Sun, 13 Aug 2017 23:04:31 +0200
diff --git a/debian/rules b/debian/rules
index a391ee9..6982de0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,3 +15,10 @@ else
@echo 'Skip test suite '
@echo '**********************************************************'
endif
+
+override_dh_installexamples:
+ dh_installexamples
+ # patch example
+ find $(CURDIR)/debian/node-glob/usr/share/doc/node-glob/examples/ -name '*.js' -exec \
+ sed -i 's,require\s*[(]\s*"[.][.][^"]*"\s*[)],require("glob"),g' {} \;
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-glob.git
More information about the Pkg-javascript-commits
mailing list