#!/usr/bin/env bash
set -e

mkdir -p ~/.vmodules/freeflowuniverse 
mkdir -p ~/code/github/freeflowuniverse
pushd ~/code/github/freeflowuniverse
git clone https://github.com/freeflowuniverse/crystallib.git
pushd crystallib
git checkout development_db
popd
ln -s ~/code/github/freeflowuniverse/crystallib/crystallib ~/.vmodules/freeflowuniverse/crystallib

git clone https://github.com/freeflowuniverse/webcomponents.git
ln -s ~/code/github/freeflowuniverse/webcomponents/webcomponents ~/.vmodules/freeflowuniverse/webcomponents
popd
echo "INSTALL OK"