start_devel.sh 488 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. BOTPATH="$(pwd)"
  3. LIBPATH="$BOTPATH/../libqwclient/"
  4. if [ "$(which realpath)" != "" ]; then
  5. LIBPATH="$(realpath $LIBPATH)"
  6. fi
  7. echo BOTPATH: "$BOTPATH"
  8. echo LIBPATH: "$LIBPATH"
  9. while [ 1 ]; do
  10. cd "$LIBPATH"
  11. git pull
  12. qmake
  13. make
  14. cd "$BOTPATH"
  15. git pull
  16. qmake
  17. make
  18. echo "started at $(date)" | tee -a runlog.log
  19. LD_LIBRARY_PATH="$LIBPATH" stdbuf -oL ./cmp_qwbot | tee -a runlog.log
  20. echo "crashed at $(date) - lol, we never crash." | tee -a runlog.log
  21. sleep 3
  22. done