-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·40 lines (35 loc) · 1.02 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# First set up virtualenv
# Does the system have virtualenv?
HAS_VIRTUALENV="1"
type virtualenv >/dev/null 2>&1 || { echo >&2 "virtualenv is not installed!"; HAS_VIRTUALENV="0";}
if [ ! -d ".env" ]; then
if [[ $HAS_VIRTUALENV -ne 0 ]]; then
virtualenv .env
echo "export VIRTUAL_ENV_BASE=\$VIRTUAL_ENV/.." >>.env/bin/activate
# Create bin directory
if [ ! -d "bin" ]; then
mkdir -p bin
# Add bin to PATH
echo "export PATH=\$VIRTUAL_ENV_BASE/bin:\$PATH" >>.env/bin/activate
fi
source .env/bin/activate
fi
fi
# Install meteor
if [ ! -d "meteor" ]; then
git clone https://github.com/meteor/meteor.git
cd meteor && git checkout release/[email protected] && cd ..
if [[ $HAS_VIRTUALENV -ne 0 ]]; then
ln -s `pwd`/meteor/meteor `pwd`/bin
fi
export PATH=`pwd`/meteor:$PATH
cd app && meteor && cd - 2>&1
fi
# Set up app dependencies
cd app
../meteor/meteor add xcv58:collection-api
../meteor/meteor add simple:highlight.js
../meteor/meteor add nemo64:bootstrap less
../meteor/meteor add miro:json2html
cd ..