12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- function initDefault {
- git submodule init
- git submodule update
- android update lib-project -p owncloud-android-library
- android update project -p .
- android update project -p oc_jb_workaround
- android update test-project -p tests -m ..
- }
- function initForAnt {
-
- git submodule init
- git submodule update
-
- android update lib-project -p libs/android-support-appcompat-v7-exploded-aar --target android-23
- android update lib-project -p libs/android-support-design-exploded-aar --target android-23
-
- android update lib-project -p owncloud-android-library
- android update project -p .
- android update project -p oc_jb_workaround
- android update test-project -p tests -m ..
- }
- if [ $# -lt 1 ]; then
- echo "No args found"
- echo "Usage : $0 [gradle | maven | ant]"
- exit
- fi
- case "$1" in
- "ant")
- echo "Creating Ant environment"
- initForAnt
- ;;
- "gradle") echo "Creating gradle environment"
- initDefault
- ;;
- "maven") echo "Creating maven environment"
- initDefault
- ;;
- *) echo "Argument not recognized"
- echo "Usage : $0 [gradle | maven | ant]"
- ;;
- esac
- exit
|