Ignore:
Timestamp:
07/24/12 10:36:46 (13 years ago)
Author:
Mathieu Morlighem
Message:

merged trunk-jpl and trunk for revision 12703

Location:
issm/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk

  • issm/trunk/externalpackages/android/android-sdk/install.sh

    r12332 r12707  
    11#This installs the Android SDK (Software Development Kit)
    22#which is needed for the compilation of the Java project.
     3source $ANDROID_DIR/android_variables.sh
    34
    4 step=3;
     5step=1;
    56
    67#Different steps here.
     
    1112
    1213present_dir=`pwd`;
    13 default_droid="Android-4.0"
    1414sd_card="issm-sdcard"
     15
     16((tmp=$1 ))
     17
     18if [[ $tmp -ge "1" && $tmp -le "4" ]]; then
     19    step=$1
     20else
     21    echo "Using default step: " $step
     22fi
    1523
    1624if [[ $step == "1" ]]; then
    1725
    1826        #Cleanup the install
    19         rm -rf install-sdk install-ant
     27        rm -rf install-sdk
    2028
    2129        #Download from ISSM server
    22         $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/android-sdk-r16-macosx.zip' 'android-sdk-r16-macosx.zip'
    23         $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/apache-ant-1.8.2-bin.zip' 'apache-ant-1.8.2-bin.zip'
     30        $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/android-sdk_r'$sdk_rev'-macosx.zip' 'android-sdk_r'${sdk_rev}'-macosx.zip'
    2431
    2532        # Install Android SDK and NDK.
    26         unzip -o android-sdk-r16-macosx.zip
    27         unzip -o apache-ant-1.8.2-bin.zip
     33        unzip -o android-sdk_r${sdk_rev}-macosx.zip
    2834
    2935        #Move to install
    30         mv android-sdk-macosx install-sdk
    31         mv apache-ant-1.8.2 install-ant
     36        mv -f android-sdk-macosx install-sdk
    3237
    3338        #Post_install configuration:
     
    3742        #For now, we need to install: 
    3843        #android sdk platform tools 
    39         #and a specific android api: API 15
    40         #Note: API 15 corresponds to Android 4.0.3
     44        #and a specific android api: API 16, API 15 and API 14
     45        #Note: API 16, API 15 and 14 correspond to Android 4.1, 4.0.3 and 4.0 respectively.
    4146
    42         cd install-sdk/tools/ && source ./android update sdk -t platform-tools,android-15,android-14,system-image --no-ui
     47        cd install-sdk/tools/ && source ./android update sdk -t platform-tool,${api_levels},system-image --no-ui
    4348
    4449fi
     
    7681
    7782    cd ../platform-tools
    78     ./adb wait-for-device shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock1 /system
     83    ./adb wait-for-device shell
     84    #./adb wait-for-device shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock1 /system
    7985    #./adb wait-for-device shell
    80     ./adb push $ISSM_TIER/src/c/issm.exe /data/issm.exe
    81     ./adb shell chmod 777 /data/issm.exe
    82     ./adb shell /data/issm.exe
     86    #./adb push $ISSM_TIER/src/c/issm.exe /data/issm.exe
     87    #./adb shell chmod 777 /data/issm.exe
     88    #./adb shell /data/issm.exe
    8389fi
    8490
    8591if [[ $step == "4" ]]; then
    86         rm -rf install-sdk install-ant
     92        rm -rf install-sdk
    8793fi
Note: See TracChangeset for help on using the changeset viewer.