[Pkg-javascript-commits] [node-miller-rabin] 37/37: merge patched into master
Bastien Roucariès
rouca at moszumanska.debian.org
Thu May 4 10:20:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-miller-rabin.
commit c0af8566531c59f5d234cb70abe2e6df2cfe8960
Merge: 2560a97 362fb11
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Mon Apr 17 14:15:35 2017 +0200
merge patched into master
bin/miller-rabin | 2 +-
debian/.git-dpm | 4 ++--
debian/patches/0001-Replace-node-by-nodejs.patch | 20 ++++++++++++++++++++
debian/patches/series | 1 +
debian/tests/runtestsuite | 2 +-
5 files changed, 25 insertions(+), 4 deletions(-)
diff --cc debian/.git-dpm
index 2a94729,0000000..0f7fa6e
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,8 -1,0 +1,8 @@@
+# see git-dpm(1) from git-dpm package
- 94b56df9948a1ae592b331afc9559115f3f98fb2
- 94b56df9948a1ae592b331afc9559115f3f98fb2
++362fb113d46999b5ce1abfce7ece08f14e6da476
++362fb113d46999b5ce1abfce7ece08f14e6da476
+94b56df9948a1ae592b331afc9559115f3f98fb2
+94b56df9948a1ae592b331afc9559115f3f98fb2
+node-miller-rabin_4.0.0.orig.tar.gz
+479700d9ead26fb9c9ae72ca8faf401a4d7efdcd
+2687
diff --cc debian/patches/0001-Replace-node-by-nodejs.patch
index 0000000,0000000..606ad8c
new file mode 100644
--- /dev/null
+++ b/debian/patches/0001-Replace-node-by-nodejs.patch
@@@ -1,0 -1,0 +1,20 @@@
++From 362fb113d46999b5ce1abfce7ece08f14e6da476 Mon Sep 17 00:00:00 2001
++From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bastien at gmail.com>
++Date: Mon, 17 Apr 2017 14:15:09 +0200
++Subject: Replace node by nodejs
++
++Forwarded: no
++---
++ bin/miller-rabin | 2 +-
++ 1 file changed, 1 insertion(+), 1 deletion(-)
++
++diff --git a/bin/miller-rabin b/bin/miller-rabin
++index 2e18dfd..591e67d 100755
++--- a/bin/miller-rabin
+++++ b/bin/miller-rabin
++@@ -1,4 +1,4 @@
++-#!/usr/bin/env node
+++#!/usr/bin/env nodejs
++ var bn = require('bn.js');
++ var fs = require('fs');
++ var mr = require('../').create();
diff --cc debian/patches/series
index 0000000,0000000..a46eef2
new file mode 100644
--- /dev/null
+++ b/debian/patches/series
@@@ -1,0 -1,0 +1,1 @@@
++0001-Replace-node-by-nodejs.patch
diff --cc debian/tests/runtestsuite
index 8a9770b,0000000..6d296de
mode 100755,000000..100755
--- a/debian/tests/runtestsuite
+++ b/debian/tests/runtestsuite
@@@ -1,14 -1,0 +1,14 @@@
+#!/bin/sh
+set -e
+# notice the / at end in order to load this module
+PACKAGE='miller-rabin'
+SEDCMD="s,require\s*[(]\s*'[.][.][^']*'\s*[)],require('$PACKAGE'),g"
+
+tmpdir=$(mktemp -d)
+trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
+
+cp -r test $tmpdir/test
+find test/ -maxdepth 1 -name '*.js' -print0 | \
+ xargs -0 -n1 \
- sh -c 'set -e; echo "TESTING: $3"; sed $1 < $3 > $2/$3; tape "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
++ sh -c 'set -e; echo "TESTING: $3"; sed "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
+mocha -R spec $tmpdir/test
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-miller-rabin.git
More information about the Pkg-javascript-commits
mailing list