[Pkg-javascript-commits] [node-mocha] 01/10: Install mocha.css in usr/share - update install patch
Leo Iannacone
l3on-guest at moszumanska.debian.org
Sat May 30 15:58:24 UTC 2015
This is an automated email from the git hooks/post-receive script.
l3on-guest pushed a commit to branch master
in repository node-mocha.
commit b1a779ba16777aa15382d10e93d465bfc61096ff
Author: Leo Iannacone <info at leoiannacone.com>
Date: Sat May 30 16:47:23 2015 +0200
Install mocha.css in usr/share - update install patch
---
debian/mocha.install | 1 +
..._share.patch => 0003_image_and_css_in_usr_share.patch} | 15 ++++++++++++---
debian/patches/series | 2 +-
3 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/debian/mocha.install b/debian/mocha.install
index 430765d..7d80db7 100644
--- a/debian/mocha.install
+++ b/debian/mocha.install
@@ -3,6 +3,7 @@ bin usr/lib/nodejs/mocha/
lib usr/lib/nodejs/mocha/
index.js usr/lib/nodejs/mocha/
images usr/share/javascript/mocha/
+mocha.css usr/share/javascript/mocha/
node_modules/escape-string-regexp/index.js usr/lib/nodejs/mocha/node_modules/escape-string-regexp/
node_modules/escape-string-regexp/package.json usr/lib/nodejs/mocha/node_modules/escape-string-regexp/
diff --git a/debian/patches/0003_images_in_usr_share.patch b/debian/patches/0003_image_and_css_in_usr_share.patch
similarity index 54%
rename from debian/patches/0003_images_in_usr_share.patch
rename to debian/patches/0003_image_and_css_in_usr_share.patch
index f8d0b97..c0dd1db 100644
--- a/debian/patches/0003_images_in_usr_share.patch
+++ b/debian/patches/0003_image_and_css_in_usr_share.patch
@@ -1,12 +1,12 @@
-Description: Install images in usr/share directory
+Description: Install images and stylesheet in usr/share directory
Fix lintian warning: image-file-in-usr-lib
More info: http://lintian.debian.org/tags/image-file-in-usr-lib.html
Author: Leo Iannacone <l3on at ubuntu.com>
Forwarded: not-needed
---
- bin/_mocha | 4 ++--
+ bin/_mocha | 6 +++---
lib/mocha.js | 2 +-
- 2 files changed, 3 insertions(+), 3 deletions(-)
+ 2 files changed, 4 insertions(+), 4 deletions(-)
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -21,6 +21,15 @@ Forwarded: not-needed
};
// options
+@@ -109,7 +109,7 @@
+ .action(function(path){
+ var mkdir = require('mkdirp');
+ mkdir.sync(path);
+- var css = fs.readFileSync(join(__dirname, '..', 'mocha.css'));
++ var css = fs.readFileSync('/usr/share/javascript/mocha/mocha.css');
+ var js = fs.readFileSync(join(__dirname, '..', 'mocha.js'));
+ var tmpl = fs.readFileSync(join(__dirname, '..', 'lib/template.html'));
+ fs.writeFileSync(join(path, 'mocha.css'), css);
--- a/lib/mocha.js
+++ b/lib/mocha.js
@@ -51,7 +51,7 @@
diff --git a/debian/patches/series b/debian/patches/series
index ae7d50b..f610865 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,4 @@
0001_makefile.patch
0002_fix_node_shebang.patch
-0003_images_in_usr_share.patch
+0003_image_and_css_in_usr_share.patch
0004-bundle_escape-string-regexp.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-mocha.git
More information about the Pkg-javascript-commits
mailing list