upd: rename package name and all references to it
[gigi.git] / doc / scripts / getScrypt.sh
1 #!/bin/sh
2 git clone https://github.com/wg/scrypt.git
3 BASE=$(dirname $0)/../../..
4
5 cd scrypt
6 [ "$(git rev-parse refs/tags/1.4.0)" != "0675236370458e819ee21e4427c5f7f3f9485d33" ] && echo "SHA-Hash failed" && exit 1
7
8 git checkout 0675236370458e819ee21e4427c5f7f3f9485d33
9 mkdir -p $BASE/lib/scrypt/com/lambdaworks
10 cp -R src/main/java/com/lambdaworks/crypto $BASE/lib/scrypt/com/lambdaworks
11
12 mkdir -p $BASE/tests/com/lambdaworks/crypto/test
13 cp -R src/test/java/com/lambdaworks/crypto/test $BASE/tests/com/lambdaworks/crypto
14
15 cd ..
16 rm -Rf scrypt