source: gs3-extensions/i-jetty/trunk/src/IJETTY-PUSH.sh@ 25663

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

Tidy up scripts and config files

  • Property svn:executable set to *
File size: 669 bytes
Line 
1#!/bin/bash
2
3if [ "x$PREPARE_SDCARD_GSDL3HOME" = "x" ] ; then
4 echo "Environment variable PREPARE_SDCARD_GSDL3HOME undefined" 1>&2
5 echo "Have you source setup.bash?" 1>&2
6 exit -1
7fi
8
9if [ $# = "0" ] ; then
10 within_webapps="greenstone3"
11elif [ $# = "1" ] ; then
12 within_webapps=${1#webapps/}
13else
14 echo "Error: too many arguments" 1>&2
15 echo "Usage: $0 webapps-dir" 1>&2
16 exit -1
17fi
18
19# remove any trailing slash, as 'adb' does not appear to like this
20within_webapps=${within_webapps%/}
21
22echo "Running: adb push \"webapps/$within_webapps\" \"$WITHIN_SDCARD_WEBAPPS/$within_webapps\""
23
24adb push "webapps/$within_webapps" "$WITHIN_SDCARD_WEBAPPS/$within_webapps"
Note: See TracBrowser for help on using the repository browser.