Ignore:
Timestamp:
2011-04-19T00:02:57+12:00 (13 years ago)
Author:
davidb
Message:

Some fine-tuning of scripts, as the result of a fresh pass at setting up Greenstone-3 on an Android device

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/i-jetty/trunk/src/setup.bash

    r23925 r23931  
    1818
    1919if [ "x$GSDL3HOME" = "x" ] ; then
    20   echo "Setting GSDL3HOME to '../../web'"
     20  echo "  Setting GSDL3HOME to '../../web'"
    2121  export GSDL3HOME=../../web
    2222else
     
    2626if [ "x$SDCARD_WEBAPPS" = "x" ] ; then
    2727
     28  possible_drives=""
    2829  if [ "x$IJOS" = "xcygwin" ] ; then
    2930
    3031    possible_drives=`ls -d /cygdrive/*/jetty/webapps 2>/dev/null`
    31     num_possible_drives=`echo $possible_drives | wc -l`
     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
    3238
    33     if [ $num_possible_drives = "0" ] ; then
     39  num_possible_drives=`echo $possible_drives | wc -l`
     40
     41  if [ $num_possible_drives = "0" ] ; then
    3442      echo "    Failed to automatically find and sdcard webapps folders"
    3543      echo "    Explicitly set the environment variable SDCARD_WEBAPPS to control"
    3644      echo "      installation on the Android phone"   
    37     else
    38       if [ $num_possible_drives = "1" ] ; then
    39         export SDCARD_WEBAPPS=${possible_drives[0]}
    40       else
    41         echo "    Detected more than one possible sdcard webapps folders:"
    42         echo "      $possible_drives"
    43         echo "    Explicitly set the environment variable SDCARD_WEBAPPS to control"
    44         echo "      which one is used for installation on the Android phone"   
    45       fi
    46     fi
     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"   
    4752  fi
    4853fi
     
    7277echo "+ Your environment has now been set up with iJetty extension for Greenstone"
    7378
     79echo ""
     80echo "If this is the first time you have installed Greenstone on the Android device, "
     81echo " run:"
     82echo "  ./WEBAPP-ROOT-TO-SDCARD.sh"
     83echo ""
     84echo "Then:"
     85echo ""
     86echo "  ./JAVA-TO-DEX.sh"
     87echo ""
    7488
     89
     90
     91
Note: See TracChangeset for help on using the changeset viewer.