summaryrefslogtreecommitdiff
path: root/javascript/jsPacker/build-pack.sh
diff options
context:
space:
mode:
authorausiv4 <ausiv4@eb105b4a-77de-11de-a249-6bf219df57d5>2009-07-28 17:59:43 +0000
committerausiv4 <ausiv4@eb105b4a-77de-11de-a249-6bf219df57d5>2009-07-28 17:59:43 +0000
commit4396bb0cd1bd2d3ac6943224524b1f5a4b477d30 (patch)
treebcfb42ae033748de8af1b1e11f3c5271040917a5 /javascript/jsPacker/build-pack.sh
parent422e476f496d944f0713484cbe0ee11b180cb12d (diff)
In this update we use jsPacker.pl to combine and compress javascript
files. Instead of sending 6 javascript files totaling about 50KB, we now send 1 file totaling 21.1KB. After modifying any javascript files, run build-pack.sh to update srp.min.js. The login.html and register.html templates have been changed to send the one packed file. The file srp.js was modified so that it would pack properly. Necessary files from the perl version of packer are included, but they shouldn't be included on production web servers. The packer files are released under the LGPL.
Diffstat (limited to 'javascript/jsPacker/build-pack.sh')
-rw-r--r--javascript/jsPacker/build-pack.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/javascript/jsPacker/build-pack.sh b/javascript/jsPacker/build-pack.sh
new file mode 100644
index 0000000..904b2ee
--- /dev/null
+++ b/javascript/jsPacker/build-pack.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+cat ../SHA256.js ../prng4.js ../rng.js ../jsbn.js ../jsbn2.js ../srp.js > utils.js
+perl jsPacker.pl -fsq -e62 -i utils.js -o srp.min.js
+rm utils.js