annotate INSTALL.sh @ 68:fbd4a34d8e42

make project creation template work
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 11 Jan 2011 12:43:08 -0800
parents 288397616e5f
children 13a2a66b1c41
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
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
4
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
5 REPO='http://k0s.org/mozilla/hg/autobot'
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
6 DEST='autobot' # name of the virtualenv
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
7
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
8 if [ "$#" != "0" ]
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
9 then
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
10 DEST=$1
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
11 fi
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
12
64
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
13 if which virtualenv
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
14 then
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
15 virtualenv ${DEST}
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
16 else
503d38bdee90 use virtualenv from the net if its not available locally
Jeff Hammel <jhammel@mozilla.com>
parents: 63
diff changeset
17 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
18 fi
65
288397616e5f use the varaible name
Jeff Hammel <jhammel@mozilla.com>
parents: 64
diff changeset
19 cd ${DEST}
0
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
20 . bin/activate # linux only
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21 mkdir src
8e14b6322cc7 initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22 cd src
61
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
23 hg clone ${REPO}
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
24 cd autobot
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
25 python setup.py develop
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
26
59bbfa7e67bb make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
27 # now you can run `create-autobot` to get a testing bot!