Changeset 25623 for gs3-extensions/i-jetty/trunk/src/setup.bash
- Timestamp:
- 2012-05-20T19:48:37+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/i-jetty/trunk/src/setup.bash
r25606 r25623 1 2 1 3 2 4 if [ "x$ANDROID_SDK_HOME" = "x" ] ; then 3 5 if [ ! -e setup-android.bash ] ; then 4 echo "Unable to find 'setup-android.bash'. You either need to:" 5 echo " 1) copy setup-android.bash.in to setup-android.bash and" 6 echo " edit **ANDROID_SDK_HOME** to point to where this is located" 7 echo " on your file system, or" 8 echo " 2) Explicitly set the environment variable ANDROID_SDK_HOME" 9 echo " and make sure 'dx' is on your PATH" 6 echo "Unable to find 'setup-android.bash'. You either need to:" 1>&2 7 echo " 1) copy setup-android.bash.in to setup-android.bash and" 1>&2 8 echo " edit **ANDROID_SDK_HOME** to point to where this is located" 1>&2 9 echo " on your file system, or" 1>&2 10 echo " 2) Explicitly set the environment variable ANDROID_SDK_HOME" 1>&2 11 echo " and make sure 'dx' is on your PATH" 1>&2 10 12 exit 11 13 else … … 24 26 fi 25 27 26 if [ "x$SDCARD_WEBAPPS" = "x" ] ; then 28 export PREPARE_SDCARD_GSDL3HOME=$IJETTY_HOME/webapps/greenstone3/ 27 29 28 possible_drives="" 29 if [ "x$IJOS" = "xcygwin" ] ; then 30 export WITHIN_SDCARD_WEBAPPS=/sdcard/jetty/webapps 31 export WITHIN_SDCARD_GSDL3HOME=$WITHIN_SDCARD_WEBAPPS/greenstone3 30 32 31 possible_drives=`ls -d /cygdrive/*/jetty/webapps 2>/dev/null` 32 elif [ "x$IJOS" = "xmingw" ] ; then 33 possible_drives=`ls -d /*/jetty/webapps 2>/dev/null` 34 else 35 # Linux and MacOS 36 possible_drives=`ls -d /mnt/*/jetty/webapps 2>/dev/null` 37 fi 38 39 num_possible_drives=`echo $possible_drives | wc -l` 40 41 if [ $num_possible_drives = "0" ] ; then 42 echo " Failed to automatically find and sdcard webapps folders" 43 echo " Explicitly set the environment variable SDCARD_WEBAPPS to control" 44 echo " installation on the Android phone" 45 elif [ $num_possible_drives = "1" ] ; then 46 export SDCARD_WEBAPPS=${possible_drives[0]} 47 else 48 echo " Detected more than one possible sdcard webapps folders:" 49 echo " $possible_drives" 50 echo " Explicitly set the environment variable SDCARD_WEBAPPS to control" 51 echo " which one is used for installation on the Android phone" 52 fi 53 fi 54 55 export PREPARE_SDCARD_GSDL3HOME=`pwd`/war/greenstone3/ 56 57 if [ "x$SDCARD_WEBAPPS" != "x" ] ; then 58 export SDCARD_GSDL3HOME=$SDCARD_WEBAPPS/greenstone3/ 59 echo "" 60 echo " Using:" 61 echo "" 62 echo " $PREPARE_SDCARD_GSDL3HOME" 63 echo "" 64 echo " as the *preparation* area for the Greenstone servlet" 65 echo "" 66 echo " Using:" 67 echo "" 68 echo " $SDCARD_GSDL3HOME" 69 echo "" 70 echo " as the *installation* point for the Greenstone servlet" 71 echo "" 72 fi 33 echo "" 34 echo " Using:" 35 echo "" 36 echo " $PREPARE_SDCARD_GSDL3HOME" 37 echo "" 38 echo " as the webapps *preparation* area for the Greenstone servlet" 39 echo "" 40 echo " Using:" 41 echo "" 42 echo " $WITHIN_SDCARD_GSDL3HOME" 43 echo "" 44 echo " as the *installation* point for the Greenstone servlet on the sd-card" 45 echo "" 73 46 74 47 … … 96 69 echo "to install jetty on your device, followed by" 97 70 echo "" 98 echo " ./ WEBAPP-ROOT-TO-SDCARD.sh"71 echo " ./PREPARE-WEBAPPS-GREENSTONE-ROOT-FOR-IJETTY.sh" 99 72 echo "" 100 echo "to set up tGreenstone's 'web' directory within the i-jetty webapps area." 73 echo "to set up Greenstone3's 'web' directory for the i-jetty webapps area." 74 echo "" 101 75 echo "Then:" 102 76 echo "" 103 77 echo " ./JAVA-TO-DEX.sh" 104 78 echo "" 105 echo "to cross-compile Greenstone java code to the Android DEX format ."79 echo "to cross-compile Greenstone java code to the Android DEX format and add it to the webapps area." 106 80 echo "" 107 81 echo "Finally run:" 108 82 echo "" 109 echo " ./ DEX-TO-SDCARD.sh"83 echo " ./IJETTY-PUSH.sh webapps/greenstone3" 110 84 echo "" 111 echo "to install the cross-compiled fileson the Android device"85 echo "to install the Greenstone3's webapps folder (including cross-compiled DEX files) on the Android device" 112 86 echo "======" 113 87 echo ""
Note:
See TracChangeset
for help on using the changeset viewer.