Last change
on this file since 25770 was 25770, checked in by davidb, 12 years ago |
Fixed typo in echo statement
|
-
Property svn:executable
set to
*
|
File size:
832 bytes
|
Rev | Line | |
---|
[25623] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | if [ "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
|
---|
| 7 | fi
|
---|
| 8 |
|
---|
| 9 | if [ $# = "0" ] ; then
|
---|
| 10 | within_webapps="greenstone3"
|
---|
| 11 | elif [ $# = "1" ] ; then
|
---|
| 12 | within_webapps=${1#webapps/}
|
---|
| 13 | else
|
---|
| 14 | echo "Error: too many arguments" 1>&2
|
---|
| 15 | echo "Usage: $0 webapps-dir" 1>&2
|
---|
| 16 | exit -1
|
---|
| 17 | fi
|
---|
| 18 |
|
---|
[25663] | 19 | # remove any trailing slash, as 'adb' does not appear to like this
|
---|
| 20 | within_webapps=${within_webapps%/}
|
---|
| 21 |
|
---|
[25623] | 22 | echo "Running: adb push \"webapps/$within_webapps\" \"$WITHIN_SDCARD_WEBAPPS/$within_webapps\""
|
---|
[25663] | 23 |
|
---|
[25623] | 24 | adb push "webapps/$within_webapps" "$WITHIN_SDCARD_WEBAPPS/$within_webapps"
|
---|
[25770] | 25 |
|
---|
| 26 | echo ""
|
---|
| 27 | echo "####"
|
---|
| 28 | echo "# Start up i-jetty on the Android device, and in a web browser visit:"
|
---|
| 29 | echo "# http://localhost:8080/greenstone3/"
|
---|
| 30 | echo "####"
|
---|
| 31 | echo "" |
---|
Note:
See
TracBrowser
for help on using the repository browser.