[Pkg-javascript-commits] [node-ncp] 04/04: remove binary

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Sat Jun 28 07:10:07 UTC 2014


This is an automated email from the git hooks/post-receive script.

andrewrk-guest pushed a commit to branch master
in repository node-ncp.

commit 213b650ce08705d4946c0c1b92a7096e8bce961a
Author: Andrew Kelley <superjoe30 at gmail.com>
Date:   Sat Jun 28 06:52:44 2014 +0000

    remove binary
---
 bin/ncp        | 48 ------------------------------------------------
 debian/dirs    |  1 -
 debian/install |  1 -
 debian/links   |  1 -
 4 files changed, 51 deletions(-)

diff --git a/bin/ncp b/bin/ncp
deleted file mode 100755
index 388eaba..0000000
--- a/bin/ncp
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env node
-
-
-
-
-var ncp = require('../lib/ncp'),
-    args = process.argv.slice(2),
-    source, dest;
-
-if (args.length < 2) {
-  console.error('Usage: ncp [source] [destination] [--filter=filter] [--limit=concurrency limit]');
-  process.exit(1);
-}
-
-// parse arguments the hard way
-function startsWith(str, prefix) {
-  return str.substr(0, prefix.length) == prefix;
-}
-
-var options = {};
-args.forEach(function (arg) {
-  if (startsWith(arg, "--limit=")) {
-    options.limit = parseInt(arg.split('=', 2)[1], 10);
-  }
-  if (startsWith(arg, "--filter=")) {
-    options.filter = new RegExp(arg.split('=', 2)[1]);
-  }
-  if (startsWith(arg, "--stoponerr")) {
-    options.stopOnErr = true;
-  }
-});
-
-ncp.ncp(args[0], args[1], options, function (err) {
-  if (Array.isArray(err)) {
-    console.error('There were errors during the copy.');
-    err.forEach(function (err) {
-      console.error(err.stack || err.message);
-    });
-    process.exit(1);
-  }
-  else if (err) {
-    console.error('An error has occurred.');
-    console.error(err.stack || err.message);
-    process.exit(1);
-  }
-});
-
-
diff --git a/debian/dirs b/debian/dirs
deleted file mode 100644
index e772481..0000000
--- a/debian/dirs
+++ /dev/null
@@ -1 +0,0 @@
-usr/bin
diff --git a/debian/install b/debian/install
index 7ef6d70..b944d87 100644
--- a/debian/install
+++ b/debian/install
@@ -1,3 +1,2 @@
 package.json usr/lib/nodejs/ncp/
-bin usr/lib/nodejs/ncp/
 lib usr/lib/nodejs/ncp/
diff --git a/debian/links b/debian/links
deleted file mode 100644
index e548069..0000000
--- a/debian/links
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/nodejs/ncp/bin/ncp usr/bin/ncp

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-ncp.git



More information about the Pkg-javascript-commits mailing list