[Pkg-javascript-commits] [node-convert-source-map] 08/11: Fix examples
Bastien Roucariès
rouca at moszumanska.debian.org
Sun Apr 16 17:39:26 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-convert-source-map.
commit a444dcf9a7eaad0eedc8a8af88afda279bb380a8
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Sun Apr 16 15:43:54 2017 +0200
Fix examples
---
debian/changelog | 2 ++
debian/rules | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 56f7eb2..2c894e3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ node-convert-source-map (1.5.0-1) unstable; urgency=medium
* Enable testsuite (Closes: #818319).
* Update standards version. No change.
* Bump compat version.
+ * Fix example installation. Replace require('../') by
+ require('convert-source-map').
-- Bastien Roucariès <rouca at debian.org> Sun, 16 Apr 2017 15:33:49 +0200
diff --git a/debian/rules b/debian/rules
index 5860fb3..3034482 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,4 +16,8 @@ else
@echo '**********************************************************'
endif
+override_dh_installexamples:
+ dh_installexamples
+ find $(CURDIR)/debian/node-convert-source-map/usr/share/doc/node-convert-source-map/examples/ -name '*.js' -exec \
+ sed -i "s,require\s*[(]\s*'[.][.][^']*'\s*[)],require('convert-source-map'),g" {} \;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-convert-source-map.git
More information about the Pkg-javascript-commits
mailing list