Changeset 23931 for gs3-extensions
- Timestamp:
- 2011-04-19T00:02:57+12:00 (13 years ago)
- Location:
- gs3-extensions/i-jetty/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/i-jetty/trunk/src/DEX-TO-SDCARD.sh
r23920 r23931 5 5 echo " => No valid directory to install to on Android device" 6 6 echo " => Did you run setup.bash before the Android device was in disk mode?" 7 exit 7 echo " => Alternatively, set the environment variable explicitly" 8 exit -1 8 9 fi 9 10 -
gs3-extensions/i-jetty/trunk/src/JAVA-TO-DEX.sh
r23930 r23931 5 5 echo " => No valid directory to install to on Android device" 6 6 echo " => Did you run setup.bash before the Android device was in disk mode?" 7 exit 7 echo " => Alternatively, set the environment variable explicitly" 8 exit -1 8 9 fi 9 10 -
gs3-extensions/i-jetty/trunk/src/WEBAPP-ROOT-TO-SDCARD.sh
r23888 r23931 1 1 #!/bin/bash 2 3 if [ "x$SDCARD_WEBAPPS" = "x" ] ; then 4 echo "Environment variable SDCARD_WEBAPPS undefined" 5 echo " => No valid directory to install to on Android device" 6 echo " => Did you run setup.bash before the Android device was in disk mode?" 7 echo " => Alternatively, set the environment variable explicitly" 8 exit -1 9 fi 10 2 11 3 12 if [ ! -d $SDCARD_GSDL3HOME ] ; then … … 12 21 echo "#---" 13 22 echo "# $mode $GSDL3HOME -> $SDCARD_GSDL3HOME" 23 echo "# (this may take several minutes)" 24 echo "#---" 25 echo "" 26 14 27 if [ $mode = "Installing" ] ; then 15 echo "# (this may take several minutes)"16 echo "#---"17 echo ""18 28 (cd $GSDL3HOME && find . -type d ) \ 19 29 | egrep -v '/\.svn' \ … … 22 32 | egrep -v 'WEB-INF/lib' \ 23 33 | xargs -I {} mkdir -p $SDCARD_GSDL3HOME/{} 24 else25 echo "#---"26 echo ""27 34 fi 28 29 35 30 36 (cd $GSDL3HOME && find . -type f ) \ … … 39 45 echo "Creating 'localsite' in $SDCARD_GSDLHOME" 40 46 mkdir $SDCARD_GSDL3HOME/sites/localsite 47 mkdir $SDCARD_GSDL3HOME/sites/localsite/collect 41 48 fi 42 49 43 /bin/cp -u -v -r sites/without-jni/* $SDCARD_GSDL3HOME/sites/localsite/. 50 /bin/cp -u -v $GSDL3HOME/sites/localsite/siteConfig.xml $SDCARD_GSDL3HOME/sites/localsite/. 51 52 /bin/cp -u -v -r $GSDL3HOME/sites/localsite/etc $SDCARD_GSDL3HOME/sites/localsite/. 53 54 /bin/cp -u -v -r $GSDL3HOME/sites/localsite/collect/lucene-jdbm-demo $SDCARD_GSDL3HOME/sites/localsite/collect/. 44 55 45 56 46 57 58 59 -
gs3-extensions/i-jetty/trunk/src/setup.bash
r23925 r23931 18 18 19 19 if [ "x$GSDL3HOME" = "x" ] ; then 20 echo " Setting GSDL3HOME to '../../web'"20 echo " Setting GSDL3HOME to '../../web'" 21 21 export GSDL3HOME=../../web 22 22 else … … 26 26 if [ "x$SDCARD_WEBAPPS" = "x" ] ; then 27 27 28 possible_drives="" 28 29 if [ "x$IJOS" = "xcygwin" ] ; then 29 30 30 31 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 32 38 33 if [ $num_possible_drives = "0" ] ; then 39 num_possible_drives=`echo $possible_drives | wc -l` 40 41 if [ $num_possible_drives = "0" ] ; then 34 42 echo " Failed to automatically find and sdcard webapps folders" 35 43 echo " Explicitly set the environment variable SDCARD_WEBAPPS to control" 36 44 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" 47 52 fi 48 53 fi … … 72 77 echo "+ Your environment has now been set up with iJetty extension for Greenstone" 73 78 79 echo "" 80 echo "If this is the first time you have installed Greenstone on the Android device, " 81 echo " run:" 82 echo " ./WEBAPP-ROOT-TO-SDCARD.sh" 83 echo "" 84 echo "Then:" 85 echo "" 86 echo " ./JAVA-TO-DEX.sh" 87 echo "" 74 88 89 90 91
Note:
See TracChangeset
for help on using the changeset viewer.