Loading

Paste #pooqs768b

  1. $  cat update
  2. #!/bin/sh
  3. set -e -u
  4.  
  5. #if test ! -d CD
  6. #then echo "CD directory missing"
  7. #     exit 1
  8. #fi
  9.  
  10. no_master=0
  11. no_thg=0
  12. while test $# -gt 0
  13. do case $1 in
  14.     -m)
  15.         shift; no_master=1;;
  16.     -t)
  17.         shift; no_thg=1;;
  18.     -h|--help)
  19.         echo "Update FreeRCT mirror files."
  20.         echo "update [-t] [-m]"
  21.         echo "with -t  Do not start thg"
  22.         echo "     -m  Do not update from master"
  23.         exit 0;;
  24.     "") break;;
  25.     *)
  26.         abort "Unknown option \\$1. Try -h option for help.";;
  27.    esac
  28. done
  29.  
  30. hg -R hg_trunk log -r tip
  31.  
  32. cd hg_trunk
  33. if test $no_master -eq 0
  34. then hg fetch
  35. fi
  36.  
  37. if test $no_thg -eq 0
  38. then thg &
  39. fi
  40.  
  41. cd ../play
  42. if test $no_master -eq 0
  43. then make clean
  44.      hg pull -u
  45.      cmake .
  46.      time make
  47.      make doc
  48.      if test ! -z doxygen_warnings.txt
  49.      then echo
  50.           echo "Warnings in play/doxygen_warnings.txt (`wc -l doxygen_warnings.txt` lines)"
  51.      fi
  52. fi

Comments