[Pkg-javascript-commits] [node-optimist] 13/15: Update patch 01.
dod at debian.org
dod at debian.org
Wed May 14 17:58:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
dod pushed a commit to branch jonas-work
in repository node-optimist.
commit 4f53626097ee03f4d18519cd09eaf66e7314c141
Author: Jonas Smedegaard <dr at jones.dk>
Date: Fri Mar 15 01:15:42 2013 +0100
Update patch 01.
---
debian/patches/01-migrate_to_nodejs.patch | 75 +++++++++++--------------------
1 file changed, 26 insertions(+), 49 deletions(-)
diff --git a/debian/patches/01-migrate_to_nodejs.patch b/debian/patches/01-migrate_to_nodejs.patch
index 37c1170..fea8703 100644
--- a/debian/patches/01-migrate_to_nodejs.patch
+++ b/debian/patches/01-migrate_to_nodejs.patch
@@ -2,126 +2,103 @@ From: David Paleino <dapal at debian.org>
Subject: migrate from node to nodejs
Forwarded: not-needed
----
- examples/bool.js | 2 +-
- examples/boolean_double.js | 2 +-
- examples/boolean_single.js | 2 +-
- examples/default_hash.js | 2 +-
- examples/default_singles.js | 2 +-
- examples/divide.js | 2 +-
- examples/line_count.js | 2 +-
- examples/line_count_options.js | 2 +-
- examples/line_count_wrap.js | 2 +-
- examples/nonopt.js | 2 +-
- examples/reflect.js | 2 +-
- examples/short.js | 2 +-
- examples/string.js | 2 +-
- examples/xup.js | 2 +-
- 14 files changed, 14 insertions(+), 14 deletions(-)
-
---- node-optimist.orig/examples/bool.js
-+++ node-optimist/examples/bool.js
+--- a/example/bool.js
++++ b/example/bool.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
var util = require('util');
var argv = require('optimist').argv;
---- node-optimist.orig/examples/boolean_double.js
-+++ node-optimist/examples/boolean_double.js
+--- a/example/boolean_double.js
++++ b/example/boolean_double.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
var argv = require('optimist')
.boolean(['x','y','z'])
.argv
---- node-optimist.orig/examples/boolean_single.js
-+++ node-optimist/examples/boolean_single.js
+--- a/example/boolean_single.js
++++ b/example/boolean_single.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
var argv = require('optimist')
.boolean('v')
.argv
---- node-optimist.orig/examples/default_hash.js
-+++ node-optimist/examples/default_hash.js
+--- a/example/default_hash.js
++++ b/example/default_hash.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
var argv = require('optimist')
.default({ x : 10, y : 10 })
---- node-optimist.orig/examples/default_singles.js
-+++ node-optimist/examples/default_singles.js
+--- a/example/default_singles.js
++++ b/example/default_singles.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
var argv = require('optimist')
.default('x', 10)
.default('y', 10)
---- node-optimist.orig/examples/divide.js
-+++ node-optimist/examples/divide.js
+--- a/example/divide.js
++++ b/example/divide.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
var argv = require('optimist')
.usage('Usage: $0 -x [num] -y [num]')
---- node-optimist.orig/examples/line_count.js
-+++ node-optimist/examples/line_count.js
+--- a/example/line_count.js
++++ b/example/line_count.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
var argv = require('optimist')
.usage('Count the lines in a file.\nUsage: $0')
.demand('f')
---- node-optimist.orig/examples/line_count_options.js
-+++ node-optimist/examples/line_count_options.js
+--- a/example/line_count_options.js
++++ b/example/line_count_options.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
var argv = require('optimist')
.usage('Count the lines in a file.\nUsage: $0')
.options({
---- node-optimist.orig/examples/line_count_wrap.js
-+++ node-optimist/examples/line_count_wrap.js
+--- a/example/line_count_wrap.js
++++ b/example/line_count_wrap.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
var argv = require('optimist')
.usage('Count the lines in a file.\nUsage: $0')
.wrap(80)
---- node-optimist.orig/examples/nonopt.js
-+++ node-optimist/examples/nonopt.js
+--- a/example/nonopt.js
++++ b/example/nonopt.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
var argv = require('optimist').argv;
console.log('(%d,%d)', argv.x, argv.y);
console.log(argv._);
---- node-optimist.orig/examples/reflect.js
-+++ node-optimist/examples/reflect.js
-@@ -1,2 +1,2 @@
--#!/usr/bin/env node
-+#!/usr/bin/nodejs
- console.dir(require('optimist').argv);
---- node-optimist.orig/examples/short.js
-+++ node-optimist/examples/short.js
+--- a/example/short.js
++++ b/example/short.js
@@ -1,3 +1,3 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
var argv = require('optimist').argv;
console.log('(%d,%d)', argv.x, argv.y);
---- node-optimist.orig/examples/string.js
-+++ node-optimist/examples/string.js
+--- a/example/string.js
++++ b/example/string.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
var argv = require('optimist')
.string('x', 'y')
.argv
---- node-optimist.orig/examples/xup.js
-+++ node-optimist/examples/xup.js
+--- a/example/xup.js
++++ b/example/xup.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/node-optimist.git
More information about the Pkg-javascript-commits
mailing list