2013-05-16 10:54:56 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo "--> copying dependencies to src\n"
|
|
|
|
|
|
|
|
# go to root
|
|
|
|
cd `dirname $0`
|
|
|
|
cd ..
|
|
|
|
|
2013-08-16 14:31:18 -04:00
|
|
|
# copy crypto lib
|
2013-06-10 11:57:33 -04:00
|
|
|
cp ./node_modules/crypto-lib/src/*.js ./src/js/crypto/
|
2013-08-16 14:31:18 -04:00
|
|
|
cp ./node_modules/crypto-lib/node_modules/node-forge/js/*.js ./src/lib/
|
|
|
|
|
|
|
|
# build imap/smtp modules and copy
|
|
|
|
cd ./node_modules/imap-client/
|
2013-08-17 11:32:49 -04:00
|
|
|
node build.js && cp ./src-gen/*.js ../../src/lib/
|
2013-08-16 14:31:18 -04:00
|
|
|
cd ../../
|
|
|
|
|
|
|
|
cd ./node_modules/smtp-client/
|
2013-08-17 11:32:49 -04:00
|
|
|
node build.js && cp ./src-gen/*.js ../../src/lib/
|
2013-08-16 14:31:18 -04:00
|
|
|
cd ../../
|
|
|
|
|
2013-08-19 15:13:32 -04:00
|
|
|
# copy test dependencies
|
|
|
|
mkdir ./test/new-unit/lib/
|
|
|
|
cp ./node_modules/mocha/mocha.css ./node_modules/mocha/mocha.js ./test/new-unit/lib/
|
|
|
|
cp ./node_modules/chai/chai.js ./test/new-unit/lib/
|
|
|
|
cp ./node_modules/sinon/pkg/sinon.js ./test/new-unit/lib/
|
|
|
|
|
2013-08-17 08:07:06 -04:00
|
|
|
echo "\n--> finished copying dependencies.\n"
|