summaryrefslogtreecommitdiff
path: root/javascript/jsPacker/build-pack.sh
diff options
context:
space:
mode:
authorausiv4 <ausiv4@eb105b4a-77de-11de-a249-6bf219df57d5>2009-08-04 04:07:21 +0000
committerausiv4 <ausiv4@eb105b4a-77de-11de-a249-6bf219df57d5>2009-08-04 04:07:21 +0000
commit7a774b6813804c945846ef9837161a523dff77c8 (patch)
treed7431760993f2b7237f8758ee3119ecacf589d43 /javascript/jsPacker/build-pack.sh
parent0f02618168da426ffe47161e72b7f8e3541ce892 (diff)
I've cleaned up the script path code so that it now packs properly. The path to the srp script can be found in the global variable srpPath. If
the server is using raw javascript files, this should be set to "srp.js". If the server is using packed files, this should be set to "srp.min.js".
Diffstat (limited to 'javascript/jsPacker/build-pack.sh')
-rw-r--r--javascript/jsPacker/build-pack.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/javascript/jsPacker/build-pack.sh b/javascript/jsPacker/build-pack.sh
index 29ffa92..904b2ee 100644
--- a/javascript/jsPacker/build-pack.sh
+++ b/javascript/jsPacker/build-pack.sh
@@ -2,5 +2,3 @@
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
-
-echo "var srpPath = (function(){\nvar scr=document.getElementsByTagName('script');\nreturn scr[scr.length-1].getAttribute(\"src\");\n})();" >> srp.min.js