forked from fschulze/mr.developer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·26 lines (26 loc) · 836 Bytes
/
bootstrap.sh
File metadata and controls
executable file
·26 lines (26 loc) · 836 Bytes
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
#!/bin/bash
if [[ $PYTHON == "" ]]; then
export PYTHON=python
fi
if $($PYTHON --version >/dev/null 2>&1); then
export PYTHON_VERSION=$($PYTHON --version 2>&1)
else
export PYTHON_VERSION="Python 2.4.x"
fi
if echo $PYTHON_VERSION | grep -q " 2.4"; then
echo $PYTHON $PYTHON_VERSION 2.4
$PYTHON bootstrap.py -d
./bin/buildout buildout:parts=test versions:zc.buildout=1.7.1
elif echo $PYTHON_VERSION | grep -q " 2.5"; then
echo $PYTHON $PYTHON_VERSION 2.5
$PYTHON bootstrap.py -d
./bin/buildout buildout:parts=test versions:zc.buildout=1.7.1
elif echo $PYTHON_VERSION | grep -q " 2."; then
echo $PYTHON $PYTHON_VERSION 2.x
$PYTHON bootstrap.py -d
./bin/buildout buildout:parts=test
else
echo $PYTHON $PYTHON_VERSION 3.x
$PYTHON bootstrap2.py
./bin/buildout buildout:parts=test
fi