annotate INSTALL.sh @ 210:6606238e2b07

finish first-draft documentation, i think
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 04 Feb 2011 17:40:45 -0800
parents 13a2a66b1c41
children 042507e2bbe3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
63
04e41ee436c3 make INSTALL script runnable
Jeff Hammel <jhammel@mozilla.com>
parents: 61
diff changeset
1 #!/usr/bin/bash
04e41ee436c3 make INSTALL script runnable
Jeff Hammel <jhammel@mozilla.com>
parents: 61
diff changeset
2
61
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
3 # installation script for autobot, the A*Team buildbot
158
13a2a66b1c41 comment the INSTALL script
Jeff Hammel <jhammel@mozilla.com>
parents: 65
diff changeset
4 # install using
13a2a66b1c41 comment the INSTALL script
Jeff Hammel <jhammel@mozilla.com>
parents: 65
diff changeset
5 # curl http://k0s.org/mozilla/hg/autobot/raw-file/tip/INSTALL.sh | bash
61
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
6
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
7 REPO='http://k0s.org/mozilla/hg/autobot'
158
13a2a66b1c41 comment the INSTALL script
Jeff Hammel <jhammel@mozilla.com>
parents: 65
diff changeset
8
13a2a66b1c41 comment the INSTALL script
Jeff Hammel <jhammel@mozilla.com>
parents: 65
diff changeset
9 # destination
61
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
10 DEST='autobot' # name of the virtualenv
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
11 if [ "$#" != "0" ]
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
12 then
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
13 DEST=$1
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
14 fi
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
15
158
13a2a66b1c41 comment the INSTALL script
Jeff Hammel <jhammel@mozilla.com>
parents: 65
diff changeset
16 # make a virualenv
64
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
17 if which virtualenv
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
18 then
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
19 virtualenv ${DEST}
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
20 else
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
21 curl https://bitbucket.org/ianb/virtualenv/raw/tip/virtualenv.py | python - ${DEST}
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
22 fi
65
288397616e5f use the varaible name
Jeff Hammel <jhammel@mozilla.com>
parents: 64
diff changeset
23 cd ${DEST}
0
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 . bin/activate # linux only
158
13a2a66b1c41 comment the INSTALL script
Jeff Hammel <jhammel@mozilla.com>
parents: 65
diff changeset
25
13a2a66b1c41 comment the INSTALL script
Jeff Hammel <jhammel@mozilla.com>
parents: 65
diff changeset
26 # checkout the repository
0
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
27 mkdir src
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
28 cd src
61
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
29 hg clone ${REPO}
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
30 cd autobot
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
31 python setup.py develop
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
32
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
33 # now you can run `create-autobot` to get a testing bot!