Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 40 lines (37 sloc) 1.12 KB
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Choose an option: (i)nstall, (d)ependency check, (r)un server on port 9876, (l)ive - run the server on port 80, (s)ync libraries, or (c) check for repos for unstaged changes."
read option
else
option=$1
fi
case $option in
[i]* )
cd applications/mootools-runner;
git submodule update --init;
cd ../dev-app;
ln -s ../../settings.py;
cd ../depender/django;
../../../env/bin/python setup.py develop;
cd ../../dev-app;
../../env/bin/python setup.py develop;;
[d]* )
cd applications/dev-app;
../../env/bin/python manage.py depender_check;;
[r]* )
cd applications/dev-app;
../../env/bin/python manage.py runserver_plus 0.0.0.0:9876;;
[l]* )
cd applications/dev-app;
../../env/bin/python manage.py runserver 0.0.0.0:80;;
[c]* )
cd lib;
../env/bin/crepo check-dirty;;
[a]* )
cd applications;
../env/bin/crepo check-dirty;;
[s]* )
cd lib;
../env/bin/crepo sync;;
* ) echo "Please choose from i, d, r, l, or s.";;
esac