5 ActionBarSherlockRepo
="https://github.com/JakeWharton/ActionBarSherlock.git"
7 #Directory for actionbarsherlock
8 DIRECTORY
="actionbarsherlock"
10 #Commit for version 4.2 of actionbar sherlock
11 COMMIT
="90939dc3925ffaaa0de269bbbe1b35e274968ea1"
14 function initDefault
{
17 android update lib-project
-p owncloud-android-library
18 android update project
-p .
19 android update project
-p oc_jb_workaround
20 android update test-project
-p tests
-m ..
24 #If the directory exists the script has already been executed
25 if [ ! -d
"$DIRECTORY" ]; then
27 #Gets the owncloud-android-library
31 #Clones the actionbarsherlock and checks-out the right release (4.2.0)
32 git clone
$ActionBarSherlockRepo $DIRECTORY
37 #As default it updates the ant scripts
38 android update project
-p
"$DIRECTORY"/library
-n ActionBarSherlock
--target android-19
39 android update lib-project
-p owncloud-android-library
40 android update project
-p .
41 android update project
-p oc_jb_workaround
42 cp third_party
/android-support-library
/android-support-v4.jar actionbarsherlock
/library
/libs
/android-support-v4.jar
43 android update test-project
-p tests
-m ..
50 echo "Usage : $0 [gradle | maven | ant]"
58 echo "Creating Ant environment"
62 "gradle") echo "Creating gradle environment"
66 "maven") echo "Creating maven environment"
70 *) echo "Argument not recognized"
71 echo "Usage : $0 [gradle | maven | ant]"