Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Stop services and apache
- alias stopopensrf='sudo -v && osrf_ctl.sh -la stop_all && sudo /etc/init.d/apache2 stop'
- # Start services, restart apache, and re-gen cache including distances.
- alias startopensrf='sudo -v && osrf_ctl.sh -la start_all && sudo /etc/init.d/apache2 restart && autogen.sh -u'
- # Whip up a windows xulrunner build
- alias build_xulrunner='cd ~/git/ILS/Open-ILS/xul/staff_client && make win-xulrunner'
- # Swap to ILS dir (saving current)
- alias to_ils='pushd . && cd ~/git/ILS'
- # Prep for clean load, recalling current branch
- alias prep_clean_load='WORKING_BRANCH=$(__git_ps1 %s) && git checkout clean && git pull'
- # Finish clean load
- alias finish_clean_load='git checkout $WORKING_BRANCH'
- # Build Evergreen
- alias build_ils='sudo -v && ./configure --prefix=/openils --sysconfdir=/openils/conf && cd ~/git/ILS/Open-ILS/xul/staff_client && make rigbeta && cd ~/git/ILS/ && sudo make STAFF_CLIENT_VERSION=tom_devbuild install && sudo chown -R opensrf:opensrf /openils && sudo chown -R opensrf:opensrf ~/git/ILS'
- # Reload DB
- alias reloaddb='~/reloaddb.sh'
- # Reload DB - Clean log
- alias reloaddb_cleanlog='~/reloaddb.sh ~/clean.log'
- # Copy Apache Files
- alias copy_apache_files='sudo cp ~/git/ILS/Open-ILS/examples/apache/eg_vhost.conf /etc/apache2/eg_vhost.conf && sudo cp ~/git/ILS/Open-ILS/examples/apache/startup.pl /etc/apache2/startup.pl'
- # Build Config
- alias oils_autoconf='if [ -f autogen.sh ]; then ./autogen.sh; else autoreconf -i; fi'
- # REINSTALL
- alias reinstall='stopopensrf && to_ils && build_ils && build_xulrunner && copy_apache_files && startopensrf && popd'
- # REINSTALL WITH RELOAD
- alias reinstall_reload='stopopensrf && to_ils && build_ils && reloaddb && build_xulrunner && copy_apache_files && startopensrf && popd'
- # CLEAN REINSTALL WITH RELOAD
- alias reinstall_reload_clean='stopopensrf && to_ils && prep_clean_load && build_ils && reloaddb_cleanlog && build_xulrunner && finish_clean_load && copy_apache_files && startopensrf && popd'
- # CLEAN RELOAD (no reinstall, but stops opensrf/apache)
- alias reloaddb_clean='stopopensrf && to_ils && prep_clean_load && reloaddb_cleanlog && finish_clean_load && popd'
- # Clean the main dir
- alias clean_ils='stopopensrf && pushd . && cd ~/git/ILS && git reset --hard && rm -f .gitignore && git clean -d -f -q && git reset --hard && oils_autoconf && ./configure --prefix=/openils --sysconfdir=/openils/conf && cd ~/git/ILS/Open-ILS/xul/staff_client && make rigbeta && popd && rm -rf /openils/var/web/* && reinstall && tar xzf ~/dojo.tgz -C /openils/var/web/js/dojo/ && ln -s /openils/var/web/xul/tom_devbuild/server /openils/var/web/xul/server'
- # Because I am lazy. :P
- alias amend='git commit -a --amend'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement