123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- ActionBarSherlockRepo="https://github.com/JakeWharton/ActionBarSherlock.git"
- DIRECTORY="actionbarsherlock"
- COMMIT="90939dc3925ffaaa0de269bbbe1b35e274968ea1"
- 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 {
-
- if [ ! -d "$DIRECTORY" ]; then
-
- git submodule init
- git submodule update
-
- git clone $ActionBarSherlockRepo $DIRECTORY
- cd $DIRECTORY
- git checkout $COMMIT
- cd ../
-
- android update project -p "$DIRECTORY"/library -n ActionBarSherlock --target android-19
- android update lib-project -p owncloud-android-library
- android update project -p .
- android update project -p oc_jb_workaround
- cp third_party/android-support-library/android-support-v4.jar actionbarsherlock/library/libs/android-support-v4.jar
- android update test-project -p tests -m ..
- fi
- }
- 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
|