source: gs3-extensions/i-jetty/trunk/src/setup.bash@ 26434

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

Restructuring of scripts to use 'i-jetty' webapps preparation area

File size: 2.4 KB
Line 
1
2
3
4if [ "x$ANDROID_SDK_HOME" = "x" ] ; then
5 if [ ! -e setup-android.bash ] ; then
6 echo "Unable to find 'setup-android.bash'. You either need to:" 1>&2
7 echo " 1) copy setup-android.bash.in to setup-android.bash and" 1>&2
8 echo " edit **ANDROID_SDK_HOME** to point to where this is located" 1>&2
9 echo " on your file system, or" 1>&2
10 echo " 2) Explicitly set the environment variable ANDROID_SDK_HOME" 1>&2
11 echo " and make sure 'dx' is on your PATH" 1>&2
12 exit
13 else
14 source setup-android.bash
15 fi
16fi
17
18export IJETTY_HOME=`pwd`
19export IJOS=`uname | sed 's/^cygwin.*$/cygwin/i' | sed 's/^mingw.*$/mingw/i'`
20
21if [ "x$GSDL3HOME" = "x" ] ; then
22 echo " Setting GSDL3HOME to '../../web'"
23 export GSDL3HOME=../../web
24else
25 echo "Using existing value of GSDL3HOME: '$GSDL3HOME'"
26fi
27
28export PREPARE_SDCARD_GSDL3HOME=$IJETTY_HOME/webapps/greenstone3/
29
30export WITHIN_SDCARD_WEBAPPS=/sdcard/jetty/webapps
31export WITHIN_SDCARD_GSDL3HOME=$WITHIN_SDCARD_WEBAPPS/greenstone3
32
33echo ""
34echo " Using:"
35echo ""
36echo " $PREPARE_SDCARD_GSDL3HOME"
37echo ""
38echo " as the webapps *preparation* area for the Greenstone servlet"
39echo ""
40echo " Using:"
41echo ""
42echo " $WITHIN_SDCARD_GSDL3HOME"
43echo ""
44echo " as the *installation* point for the Greenstone servlet on the sd-card"
45echo ""
46
47
48if [ "x$IJETTY_PORT" = "x" ] ; then
49 export IJETTY_PORT=8080
50 echo ""
51 echo " Setting IJETTY_PORT to 8080"
52 echo " Explicityly set this environment variable to override this default"
53 echo ""
54else
55 echo ""
56 echo " Using IJETTY PORT = $IJETTY_PORT"
57 echo ""
58fi
59
60echo "+ Your environment has now been set up with iJetty extension for Greenstone"
61
62echo ""
63echo "======"
64echo "If this is the first time you have installed Greenstone on the Android device, "
65echo " run:"
66echo ""
67echo " adb install i-jetty-2.2-signed.apk"
68echo ""
69echo "to install jetty on your device, followed by"
70echo ""
71echo " ./PREPARE-WEBAPPS-GREENSTONE-ROOT-FOR-IJETTY.sh"
72echo ""
73echo "to set up Greenstone3's 'web' directory for the i-jetty webapps area."
74echo ""
75echo "Then:"
76echo ""
77echo " ./JAVA-TO-DEX.sh"
78echo ""
79echo "to cross-compile Greenstone java code to the Android DEX format and add it to the webapps area."
80echo ""
81echo "Finally run:"
82echo ""
83echo " ./IJETTY-PUSH.sh webapps/greenstone3"
84echo ""
85echo "to install the Greenstone3's webapps folder (including cross-compiled DEX files) on the Android device"
86echo "======"
87echo ""
88
89
90
91
92
93
Note: See TracBrowser for help on using the repository browser.