setup_env.sh 593 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash -e
  2. function initDefault {
  3. git submodule init
  4. git submodule update
  5. android update lib-project -p owncloud-android-library
  6. android update project -p .
  7. android update project -p oc_jb_workaround
  8. android update test-project -p tests -m ..
  9. }
  10. #No args
  11. if [ $# -lt 1 ]; then
  12. echo "No args found"
  13. echo "Usage : $0 [gradle]" exit
  14. fi
  15. #checking args
  16. case "$1" in
  17. "gradle") echo "Creating gradle environment"
  18. initDefault
  19. ;;
  20. *) echo "Argument not recognized"
  21. echo "Usage : $0 [gradle]" ;;
  22. esac
  23. exit