comparison INSTALL.sh @ 158:13a2a66b1c41

comment the INSTALL script
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 27 Jan 2011 20:57:39 -0800
parents 288397616e5f
children 042507e2bbe3
comparison
equal deleted inserted replaced
157:f6774dcafb6a 158:13a2a66b1c41
1 #!/usr/bin/bash 1 #!/usr/bin/bash
2 2
3 # installation script for autobot, the A*Team buildbot 3 # installation script for autobot, the A*Team buildbot
4 # install using
5 # curl http://k0s.org/mozilla/hg/autobot/raw-file/tip/INSTALL.sh | bash
4 6
5 REPO='http://k0s.org/mozilla/hg/autobot' 7 REPO='http://k0s.org/mozilla/hg/autobot'
8
9 # destination
6 DEST='autobot' # name of the virtualenv 10 DEST='autobot' # name of the virtualenv
7
8 if [ "$#" != "0" ] 11 if [ "$#" != "0" ]
9 then 12 then
10 DEST=$1 13 DEST=$1
11 fi 14 fi
12 15
16 # make a virualenv
13 if which virtualenv 17 if which virtualenv
14 then 18 then
15 virtualenv ${DEST} 19 virtualenv ${DEST}
16 else 20 else
17 curl https://bitbucket.org/ianb/virtualenv/raw/tip/virtualenv.py | python - ${DEST} 21 curl https://bitbucket.org/ianb/virtualenv/raw/tip/virtualenv.py | python - ${DEST}
18 fi 22 fi
19 cd ${DEST} 23 cd ${DEST}
20 . bin/activate # linux only 24 . bin/activate # linux only
25
26 # checkout the repository
21 mkdir src 27 mkdir src
22 cd src 28 cd src
23 hg clone ${REPO} 29 hg clone ${REPO}
24 cd autobot 30 cd autobot
25 python setup.py develop 31 python setup.py develop