Advertisement
cmptrwz

Eg Dev Aliases

Aug 31st, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.64 KB | None | 0 0
  1. # Stop services and apache
  2. alias stopopensrf='sudo -v && osrf_ctl.sh -la stop_all && sudo /etc/init.d/apache2 stop'
  3. # Start services, restart apache, and re-gen cache including distances.
  4. alias startopensrf='sudo -v && osrf_ctl.sh -la start_all && sudo /etc/init.d/apache2 restart && autogen.sh -u'
  5. # Whip up a windows xulrunner build
  6. alias build_xulrunner='cd ~/git/ILS/Open-ILS/xul/staff_client && make win-xulrunner'
  7. # Swap to ILS dir (saving current)
  8. alias to_ils='pushd . && cd ~/git/ILS'
  9. # Prep for clean load, recalling current branch
  10. alias prep_clean_load='WORKING_BRANCH=$(__git_ps1 %s) && git checkout clean && git pull'
  11. # Finish clean load
  12. alias finish_clean_load='git checkout $WORKING_BRANCH'
  13. # Build Evergreen
  14. 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'
  15. # Reload DB
  16. alias reloaddb='~/reloaddb.sh'
  17. # Reload DB - Clean log
  18. alias reloaddb_cleanlog='~/reloaddb.sh ~/clean.log'
  19. # Copy Apache Files
  20. 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'
  21. # Build Config
  22. alias oils_autoconf='if [ -f autogen.sh ]; then ./autogen.sh; else autoreconf -i; fi'
  23.  
  24. # REINSTALL
  25. alias reinstall='stopopensrf && to_ils && build_ils && build_xulrunner && copy_apache_files && startopensrf && popd'
  26. # REINSTALL WITH RELOAD
  27. alias reinstall_reload='stopopensrf && to_ils && build_ils && reloaddb && build_xulrunner && copy_apache_files && startopensrf && popd'
  28. # CLEAN REINSTALL WITH RELOAD
  29. alias reinstall_reload_clean='stopopensrf && to_ils && prep_clean_load && build_ils && reloaddb_cleanlog && build_xulrunner && finish_clean_load && copy_apache_files && startopensrf && popd'
  30. # CLEAN RELOAD (no reinstall, but stops opensrf/apache)
  31. alias reloaddb_clean='stopopensrf && to_ils && prep_clean_load && reloaddb_cleanlog && finish_clean_load && popd'
  32.  
  33. # Clean the main dir
  34. 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'
  35.  
  36. # Because I am lazy. :P
  37. alias amend='git commit -a --amend'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement