2017-11-07 21:57:40 +00:00
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
|
|
|
|
my_name=walnut
|
|
|
|
# TODO provide an option to supply my_ver and my_tmp
|
|
|
|
my_ver=master
|
|
|
|
my_tmp=$(mktemp -d)
|
|
|
|
|
|
|
|
mkdir -p $my_tmp/opt/$my_name/lib/node_modules/$my_name
|
2018-05-17 10:09:43 +00:00
|
|
|
git clone https://git.coolaj86.com/coolaj86/walnut.js.git $my_tmp/opt/$my_name/core
|
2017-11-07 21:57:40 +00:00
|
|
|
|
|
|
|
echo "Installing to $my_tmp (will be moved after install)"
|
|
|
|
pushd $my_tmp/opt/$my_name/core
|
|
|
|
git checkout $my_ver
|
|
|
|
source ./installer/install.sh
|
|
|
|
popd
|
|
|
|
|
|
|
|
echo "Installation successful, now cleaning up $my_tmp ..."
|
|
|
|
rm -rf $my_tmp
|
|
|
|
echo "Done"
|