root/gs3-extensions/i-jetty/trunk/src/DEX-TO-SDCARD.sh @ 23931

Revision 23931, 0.8 KB (checked in by davidb, 9 years ago)

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

Line 
1#!/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
11
12if [ ! -d $SDCARD_GSDL3HOME ] ; then
13  # First time install has been run => do a full copy
14  mode="Installing"
15
16else
17  # Only need to regenerate 'lib' folder
18  mode="Updating"
19fi
20
21echo "#---"
22echo "# $mode Android servlet version to "
23echo "#   $SDCARD_GSDL3HOME/WEB-INF/lib"
24echo "#---"
25echo ""
26
27if [ -d $SDCARD_GSDL3HOME/WEB-INF/lib ] ; then
28  /bin/rm -rf $SDCARD_GSDL3HOME/WEB-INF/lib
29fi
30
31/bin/cp -r lib $SDCARD_GSDL3HOME/WEB-INF/.
Note: See TracBrowser for help on using the browser.