source: gs3-extensions/i-jetty/trunk/src/DEX-TO-PREPARED-SDCARD.sh@ 25607

Last change on this file since 25607 was 25605, checked in by davidb, 12 years ago

Restructuring scripts to prepare all files needed on the sd-card locally, before pushing across to device

  • Property svn:executable set to *
File size: 759 bytes
Line 
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
11if [ "x$PREPARE_SDCARD_GSDL3HOME" = "x" ] ; then
12 echo "Environment variable PREPARE_SDCARD_GSDL3HOME undefined"
13 exit -1
14fi
15
16echo "#---"
17echo "# Copying dexified servlet code to "
18echo "# $PREPARE_SDCARD_GSDL3HOME/WEB-INF/lib"
19echo "#---"
20echo ""
21
22if [ -d $PREPARE_SDCARD_GSDL3HOME/WEB-INF/lib ] ; then
23 /bin/rm -rf $PREPARE_SDCARD_GSDL3HOME/WEB-INF/lib
24fi
25
26/bin/cp -r lib $PREPARE_SDCARD_GSDL3HOME/WEB-INF/.
Note: See TracBrowser for help on using the repository browser.