- Timestamp:
- 2011-04-19T00:02:57+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.