Mercurial > hg > autobot
annotate INSTALL.sh @ 63:04e41ee436c3
make INSTALL script runnable
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 11 Jan 2011 09:32:36 -0800 |
parents | 59bbfa7e67bb |
children | 503d38bdee90 |
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 |
59bbfa7e67bb
make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
13 virtualenv ${DEST} |
0
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
14 cd autobot |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
15 . bin/activate # linux only |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
16 mkdir src |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
17 cd src |
61
59bbfa7e67bb
make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
18 hg clone ${REPO} |
59bbfa7e67bb
make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
19 cd autobot |
59bbfa7e67bb
make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
20 python setup.py develop |
59bbfa7e67bb
make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
21 |
59bbfa7e67bb
make an actual working install script
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
22 # now you can run `create-autobot` to get a testing bot! |