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

Revision 25607, 0.8 KB (checked in by davidb, 7 years ago)

White space tidy-up

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