Mercurial > hg > config
annotate bin/clone-mozbase.sh @ 571:0dbde82d1c82
STUB: .emacs
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Thu, 16 Jan 2014 15:32:15 -0800 |
parents | ee7e213d12bd |
children |
rev | line source |
---|---|
284
35b30d8fccac
add a function to clone mozbase; for the love of workflow
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
1 #!/bin/bash |
35b30d8fccac
add a function to clone mozbase; for the love of workflow
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
2 |
344 | 3 VENV=virtualenv.py |
4 | |
5 if [[ -d "${VIRTUAL_ENV}" ]] | |
6 then | |
7 echo "virtualenv: ${VIRTUAL_ENV}" | |
419 | 8 else |
9 if [ -n "${VIRTUAL_ENV}" ] | |
10 then | |
11 echo "VIRTUAL_ENV defined but not a directory: ${VIRTUAL_ENV}" | |
12 exit 1 | |
13 fi | |
14 | |
15 if ! which ${VENV} | |
16 then | |
17 echo "${VENV} not found" | |
18 exit 1 | |
19 fi | |
20 VIRTUAL_ENV=${PWD}/mozbase | |
21 echo "Creating virtualenv: ${VIRTUAL_ENV}" | |
22 ${VENV} ${VIRTUAL_ENV} | |
23 cd ${VIRTUAL_ENV} | |
24 . bin/activate | |
25 mkdir -p src | |
420 | 26 cd src |
344 | 27 fi |
28 | |
284
35b30d8fccac
add a function to clone mozbase; for the love of workflow
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
29 git clone git@github.com:k0s/mozbase.git |
35b30d8fccac
add a function to clone mozbase; for the love of workflow
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
30 cd mozbase |
35b30d8fccac
add a function to clone mozbase; for the love of workflow
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
31 git remote add mozilla git@github.com:mozilla/mozbase.git |
344 | 32 git pull mozilla master |
423 | 33 git push origin master |
34 | |
35 if [ -d "${VIRTUAL_ENV}" ] | |
36 then | |
37 python setup_development.py | |
38 fi |