[Pkg-javascript-commits] [tweetnacl] 04/10: Made changes in debian/ files and excluded nacl.min.js and nacl-fast.min.js

Ross Gammon ross-guest at moszumanska.debian.org
Tue Jan 31 18:36:20 UTC 2017


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

ross-guest pushed a commit to branch master
in repository tweetnacl.

commit 6acbf1002eb162dab64a854698ec711d418e09f8
Author: Yashashree Kolhe <yashashreekolhe at gmail.com>
Date:   Sat Jan 7 11:33:50 2017 +0530

    Made changes in debian/ files and excluded nacl.min.js and nacl-fast.min.js
---
 debian/control   |  5 ++++-
 debian/copyright |  4 ++++
 debian/rules     | 10 +++++++++-
 nacl-fast.min.js |  2 --
 nacl.min.js      |  1 -
 5 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index e8f98a2..b0d59ad 100644
--- a/debian/control
+++ b/debian/control
@@ -18,6 +18,9 @@ Depends:
  ${misc:Depends}
  , nodejs
 Description: Port of TweetNaCl cryptographic library to JavaScript
- FIX_ME long description
+ The primary goal of this project is to produce a translation of
+ TweetNaCl to JavaScript which is as close as possible to the
+ original C implementation, plus a thin layer of idiomatic
+ high-level API on top of it.
  .
  Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
index 502bbe0..54fec77 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -2,6 +2,10 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: tweetnacl
 Upstream-Contact: https://github.com/dchest/tweetnacl-js/issues
 Source: https://tweetnacl.js.org
+Files-Excluded:
+ nacl.min.js
+ nacl-fast.min.js
+Comment: Generated Files
 
 Files: *
 Copyright: 2017 TweetNaCl-js contributors
diff --git a/debian/rules b/debian/rules
index de57af0..cfffb04 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,15 @@
 %:
 	dh $@
 
-#override_dh_auto_build:
+override_dh_auto_build:
+	dh_auto_build
+	uglifyjs -o nacl.min.js nacl.js
+	uglifyjs -o nacl-fast.min.js nacl.js
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f nacl.min.js
+	rm -f nacl-fast.min.js
 
 #override_dh_auto_test:
 
diff --git a/nacl-fast.min.js b/nacl-fast.min.js
deleted file mode 100644
index 8bc47da..0000000
--- a/nacl-fast.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-!function(r){"use strict";function t(r,t,n,e){r[t]=n>>24&255,r[t+1]=n>>16&255,r[t+2]=n>>8&255,r[t+3]=255&n,r[t+4]=e>>24&255,r[t+5]=e>>16&255,r[t+6]=e>>8&255,r[t+7]=255&e}function n(r,t,n,e,o){var i,h=0;for(i=0;i<o;i++)h|=r[t+i]^n[e+i];return(1&h-1>>>8)-1}function e(r,t,e,o){return n(r,t,e,o,16)}function o(r,t,e,o){return n(r,t,e,o,32)}function i(r,t,n,e){for(var o,i=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255 [...]
-0!==r.length&&0!==t.length&&(r.length===t.length&&0===n(r,0,t,0,r.length))},r.setPRNG=function(r){rr=r},function(){var t="undefined"!=typeof self?self.crypto||self.msCrypto:null;if(t&&t.getRandomValues){var n=65536;r.setPRNG(function(r,e){var o,i=new Uint8Array(e);for(o=0;o<e;o+=n)t.getRandomValues(i.subarray(o,o+Math.min(e-o,n)));for(o=0;o<e;o++)r[o]=i[o];W(i)})}else"undefined"!=typeof require&&(t=require("crypto"),t&&t.randomBytes&&r.setPRNG(function(r,n){var e,o=t.randomBytes(n);for(e [...]
\ No newline at end of file
diff --git a/nacl.min.js b/nacl.min.js
deleted file mode 100644
index 4484974..0000000
--- a/nacl.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(r){"use strict";function n(r,n){return r<<n|r>>>32-n}function e(r,n){var e=255&r[n+3];return e=e<<8|255&r[n+2],e=e<<8|255&r[n+1],e<<8|255&r[n+0]}function t(r,n){var e=r[n]<<24|r[n+1]<<16|r[n+2]<<8|r[n+3],t=r[n+4]<<24|r[n+5]<<16|r[n+6]<<8|r[n+7];return new sr(e,t)}function o(r,n,e){var t;for(t=0;t<4;t++)r[n+t]=255&e,e>>>=8}function i(r,n,e){r[n]=e.hi>>24&255,r[n+1]=e.hi>>16&255,r[n+2]=e.hi>>8&255,r[n+3]=255&e.hi,r[n+4]=e.lo>>24&255,r[n+5]=e.lo>>16&255,r[n+6]=e.lo>>8&255,r[n+7]=2 [...]
\ No newline at end of file

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



More information about the Pkg-javascript-commits mailing list