Last active
June 13, 2016 08:07
-
-
Save rksm/e4a62b0161f3f26311342ac65c437717 to your computer and use it in GitHub Desktop.
lively.modules dev install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
# 1. Install packages | |
if [[ ! -d lively-loader ]]; then | |
git clone -b master https://github.com/LivelyKernel/node-lively-loader lively-loader | |
pushd lively-loader; | |
npm install; | |
popd | |
fi | |
if [[ ! -d lively.lang ]]; then | |
git clone -b master https://github.com/LivelyKernel/lively.lang | |
pushd lively.lang; | |
npm install; | |
popd | |
fi | |
if [[ ! -d lively.ast ]]; then | |
git clone -b master https://github.com/LivelyKernel/lively.ast | |
pushd lively.ast; | |
npm install; | |
popd | |
fi | |
if [[ ! -d lively.vm ]]; then | |
git clone -b master https://github.com/LivelyKernel/lively.vm | |
pushd lively.vm; | |
npm install; | |
popd | |
fi | |
if [[ ! -d lively.modules ]]; then | |
git clone -b master https://github.com/LivelyKernel/lively.modules | |
pushd lively.modules; | |
npm install; | |
popd | |
fi | |
if [[ ! -d lively-system-examples ]]; then | |
git clone -b master https://github.com/LivelyKernel/lively-system-examples | |
pushd lively-system-examples; | |
npm install; | |
popd | |
fi | |
if [[ ! -d mocha-es6 ]]; then | |
git clone -b master https://github.com/rksm/mocha-es6 | |
pushd mocha-es6; | |
npm install; | |
popd | |
fi | |
if [[ ! -d LivelyKernel ]]; then | |
git clone -b new-module-system https://github.com/LivelyKernel/LivelyKernel | |
pushd LivelyKernel; | |
npm install; | |
popd | |
fi | |
mkdir -p LivelyKernel/packages | |
pushd LivelyKernel/packages; | |
if [[ ! -d lively.resources ]]; then | |
git clone -b master https://github.com/LivelyKernel/lively.resources | |
pushd lively.resources; | |
npm install; | |
popd | |
fi | |
if [[ ! -d lively-system-interface ]]; then | |
git clone -b master https://github.com/LivelyKernel/lively-system-interface | |
pushd lively-system-interface; | |
npm install; | |
popd | |
fi | |
popd | |
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
# 2. Wire packages together | |
pushd lively-loader/node_modules | |
rm -rf lively.lang; ln -s ../../lively.lang lively.lang | |
popd | |
pushd lively.ast/node_modules | |
rm -rf lively.lang; ln -s ../../lively.lang lively.lang | |
rm -rf mocha-es6; ln -s ../../mocha-es6 mocha-es6 | |
popd | |
pushd lively.vm/node_modules | |
rm -rf lively.lang; ln -s ../../lively.lang lively.lang | |
rm -rf lively.ast; ln -s ../../lively.ast lively.ast | |
rm -rf mocha-es6; ln -s ../../mocha-es6 mocha-es6 | |
popd | |
pushd lively.modules/node_modules | |
rm -rf lively.lang; ln -s ../../lively.lang lively.lang | |
rm -rf lively.ast; ln -s ../../lively.ast lively.ast | |
rm -rf lively.vm; ln -s ../../lively.vm lively.vm | |
rm -rf mocha-es6; ln -s ../../mocha-es6 mocha-es6 | |
popd | |
pushd lively-system-examples/node_modules | |
rm -rf lively.modules; ln -s ../../lively.modules lively.modules | |
rm -rf lively.vm; ln -s ../../lively.vm lively.vm | |
popd | |
pushd mocha-es6/node_modules | |
rm -rf lively.modules; ln -s ../../lively.modules lively.modules | |
popd | |
pushd LivelyKernel/node_modules | |
rm -rf lively-loader; ln -s ../../lively-loader lively-loader | |
rm -rf lively.ast; ln -s ../../lively.ast lively.ast | |
rm -rf lively.lang; ln -s ../../lively.lang lively.lang | |
rm -rf lively.vm; ln -s ../../lively.vm lively.vm | |
rm -rf lively.modules; ln -s ../../lively.modules lively.modules | |
rm -rf mocha-es6; ln -s ../../mocha-es6 mocha-es6 | |
popd | |
pushd LivelyKernel/packages; | |
mkdir -p lively.resources/node_modules | |
pushd lively.resources/node_modules | |
rm -rf mocha-es6; ln -s ../../../../mocha-es6 mocha-es6 | |
popd | |
mkdir -p lively-system-interface/node_modules | |
pushd lively-system-interface/node_modules | |
rm -rf lively.modules; ln -s ../../../../lively.modules | |
rm -rf lively.resources; ln -s ../../../../lively.resources | |
rm -rf lively.lang; ln -s ../../../../lively.lang | |
rm -rf lively.ast; ln -s ../../../../lively.ast | |
rm -rf mocha-es6; ln -s ../../../../mocha-es6 mocha-es6 | |
popd | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Script for setting up lively.modules until the system can be loaded from a bundle.