2014-06-17 23:20:41 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd misc &>/dev/null
|
|
|
|
|
|
|
|
git_module() {
|
|
|
|
if [ ! -e "$1/" ]; then git clone $2; fi
|
|
|
|
cd "$1"
|
|
|
|
git pull
|
|
|
|
cd - &>/dev/null
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "::: downloading modules"
|
2014-06-21 02:15:23 +00:00
|
|
|
npm install crc-32 2>/dev/null
|
2014-06-17 23:20:41 +00:00
|
|
|
git_module node-crc https://github.com/alexgorbatchev/node-crc 2>/dev/null # crc
|
|
|
|
git_module crc32 https://github.com/beatgammit/crc32 2>/dev/null # crc32
|
|
|
|
git_module buffer-crc32 https://github.com/brianloveswords/buffer-crc32 2>/dev/null # buffer-crc32
|
|
|
|
|
2014-06-21 02:15:23 +00:00
|
|
|
for i in A B C D E F; do MODE="$i" node integration.js "$1"; done
|