bigscreenbot 989 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/env bash
  2. # Big Screen Bot
  3. #
  4. # Douglas Thrift
  5. #
  6. # bigscreenbot
  7. # Copyright 2011 Douglas Thrift
  8. #
  9. # This file is part of Big Screen Bot.
  10. #
  11. # Big Screen Bot is free software: you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation, either version 3 of the License, or
  14. # (at your option) any later version.
  15. #
  16. # Big Screen Bot is distributed in the hope that it will be useful,
  17. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. # GNU General Public License for more details.
  20. #
  21. # You should have received a copy of the GNU General Public License
  22. # along with Big Screen Bot. If not, see <http://www.gnu.org/licenses/>.
  23. cd `dirname $0`
  24. code=2
  25. while [[ $code -eq 2 ]]; do
  26. cp=(bin lib/*jar)
  27. java -cp `IFS=':'; echo "${cp[*]}"` net.douglasthrift.bigscreenbot.BigScreenBot "$@"
  28. code=$?
  29. done
  30. exit $code