git_up.sh 856 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/sh
  2. ## Copyright (c) 2014 Minoca Corp.
  3. ##
  4. ## This file is licensed under the terms of the GNU General Public License
  5. ## version 3. Alternative licensing terms are available. Contact
  6. ## info@minocacorp.com for details. See the LICENSE file at the root of this
  7. ## project for complete licensing information..
  8. ##
  9. ## Script Name:
  10. ##
  11. ## git_up.sh
  12. ##
  13. ## Abstract:
  14. ##
  15. ## This script updates the source repositories for a Windows build. SRCROOT
  16. ## must be set.
  17. ##
  18. ## Author:
  19. ##
  20. ## Evan Green 13-May-2014
  21. ##
  22. ## Environment:
  23. ##
  24. ## Minoca (Windows) Build
  25. ##
  26. set -e
  27. if ! test -d $SRCROOT; then
  28. echo "Error: SRCROOT ($SRCROOT) not set or invalid."
  29. exit 1
  30. fi
  31. cd $SRCROOT/os
  32. pwd
  33. git pull
  34. git status
  35. cd $SRCROOT/tools
  36. pwd
  37. git pull
  38. git status
  39. cd $SRCROOT/third-party
  40. pwd
  41. git pull
  42. git status
  43. echo "Git update complete"
  44. exit 0