[Pkg-javascript-commits] [node-read-only-stream] 20/22: Add examples
Bastien Roucariès
rouca at moszumanska.debian.org
Sun Aug 20 13:52:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-read-only-stream.
commit 5ca044b95ba723c91b8d017d26dc9dcdc9d76c54
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Fri Aug 11 23:06:07 2017 +0200
Add examples
---
debian/examples | 1 +
debian/rules | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/debian/examples b/debian/examples
new file mode 100644
index 0000000..e5a7b8d
--- /dev/null
+++ b/debian/examples
@@ -0,0 +1 @@
+example/*
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index 9069837..ad7218e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,3 +15,9 @@ else
@echo 'Skip test suite '
@echo '**********************************************************'
endif
+
+override_dh_installexamples:
+ dh_installexamples
+ # patch example
+ find $(CURDIR)/debian/node-read-only-stream/usr/share/doc/node-read-only-stream/examples/ -name '*.js' -exec \
+ sed -i "s,require\s*[(]\s*'[.][.][^']*'\s*[)],require('read-only-stream'),g" {} \;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-read-only-stream.git
More information about the Pkg-javascript-commits
mailing list