Ralph Bean avatar Ralph Bean committed b93d591

beefed up dev scripts

Comments (0)

Files changed (1)

development-deps/develop-tw2-destroy-and-setup.sh

 #!/bin/bash -e
 
 devbase=development-deps
-venv=$devbase/virtualenv-tw2.jquery.ui
+venv=$devbase/virtualenv-tw2.jquery
 $(
     rm -rf $venv
 ) || echo "Did not destroy $venv"
 
 source $venv/bin/activate
 
+pip install genshi
+pip install formencode
+
 pushd $devbase
 
-hg clone http://bitbucket.org/paj/tw2core || echo "tw2core exists."
-hg clone http://bitbucket.org/paj/tw2devtools || echo "tw2devtools exists."
-hg clone http://bitbucket.org/paj/tw2forms || echo "tw2devtools exists."
-git clone git://github.com/ralphbean/tw2.jquery.core.git || echo "tw2.jquery.core exists."
-
-pip install genshi
-pip install formencode
+hg clone http://bitbucket.org/paj/tw2core || \
+        pushd tw2core && hg pull && popd
+hg clone http://bitbucket.org/paj/tw2devtools || \
+        pushd tw2devtools && hg pull && popd
+hg clone http://bitbucket.org/paj/tw2forms || \
+        pushd tw2forms && hg pull && popd
+git clone git://github.com/ralphbean/tw2.jquery.core.git || \
+        pushd tw2.jquery.core && git pull && popd
+git clone git://github.com/ralphbean/tw2.jquery.ui.git || \
+        pushd tw2.jquery.ui && git pull && popd
 
 pushd tw2core ;  python setup.py develop ; popd
 pushd tw2forms ; python setup.py develop ; popd
 pushd tw2devtools ; python setup.py develop ; popd
 pushd tw2.jquery.core ; python setup.py develop ; popd
+pushd tw2.jquery.ui ; python setup.py develop ; popd
 
 pushd # $devbase
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.