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/WEBAPP-ROOT-TO-SDCARD.sh

    r23888 r23931  
    11#!/bin/bash
     2
     3if [ "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
     9fi
     10
    211
    312if [ ! -d $SDCARD_GSDL3HOME ] ; then
     
    1221echo "#---"
    1322echo "# $mode $GSDL3HOME -> $SDCARD_GSDL3HOME"
     23echo "# (this may take several minutes)"
     24echo "#---"
     25echo ""
     26
    1427if [ $mode = "Installing" ] ; then
    15   echo "# (this may take several minutes)"
    16   echo "#---"
    17   echo ""
    1828  (cd $GSDL3HOME && find . -type d ) \
    1929    | egrep -v '/\.svn' \
     
    2232    | egrep -v 'WEB-INF/lib' \
    2333    | xargs -I {} mkdir -p $SDCARD_GSDL3HOME/{}
    24 else
    25   echo "#---"
    26   echo ""
    2734fi
    28 
    2935
    3036(cd $GSDL3HOME && find . -type f ) \
     
    3945  echo "Creating 'localsite' in $SDCARD_GSDLHOME"
    4046  mkdir $SDCARD_GSDL3HOME/sites/localsite
     47  mkdir $SDCARD_GSDL3HOME/sites/localsite/collect
    4148fi
    4249
    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/.
    4455
    4556
    4657
     58
     59
Note: See TracChangeset for help on using the changeset viewer.