1
0

git_up.sh 597 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/sh
  2. ## Copyright (c) 2014 Minoca Corp. All Rights Reserved.
  3. ##
  4. ## Script Name:
  5. ##
  6. ## git_up.sh
  7. ##
  8. ## Abstract:
  9. ##
  10. ## This script updates the source repositories for a Windows build. SRCROOT
  11. ## must be set.
  12. ##
  13. ## Author:
  14. ##
  15. ## Evan Green 13-May-2014
  16. ##
  17. ## Environment:
  18. ##
  19. ## Minoca (Windows) Build
  20. ##
  21. set -e
  22. if ! test -d $SRCROOT; then
  23. echo "Error: SRCROOT ($SRCROOT) not set or invalid."
  24. exit 1
  25. fi
  26. cd $SRCROOT/os
  27. pwd
  28. git pull
  29. git status
  30. cd $SRCROOT/tools
  31. pwd
  32. git pull
  33. git status
  34. cd $SRCROOT/third-party
  35. pwd
  36. git pull
  37. git status
  38. echo "Git update complete"
  39. exit 0