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

Last change on this file since 23885 was 23885, checked in by davidb, 13 years ago

Added mingw test for OS

File size: 1.9 KB
RevLine 
[23884]1if [ "x$ANDROID_SDK_HOME" = "x" ] ; then
2 export ANDROID_SDK_HOME=**ANDROID-SDK-HOME**
3 export PATH=$ANDROID_SDK_HOME/tools:$ANDROID_SDK_HOME/platform-tools:$PATH
[23882]4
[23884]5 echo "+ Your environment has now been set up to run the Android SDK"
6fi
7
8
[23882]9export IJETTY_HOME=`pwd`
[23885]10export IJOS=`uname | sed 's/^cygwin.*$/cygwin/i' | sed 's/^mingw.*$/mingw/i'`
[23882]11
12if [ "x$GSDL3HOME" = "x" ] ; then
13 echo "Setting GSDL3HOME to '../../web'"
14 export GSDL3HOME=../../web
15else
16 echo "Using existing value of GSDL3HOME: '$GSDL3HOME'"
17fi
18
19if [ "x$SDCARD_WEBAPPS" = "x" ] ; then
20
21 if [ "x$IJOS" = "xcygwin" ] ; then
22
23 possible_drives=`ls -d /cygdrive/*/jetty/webapps 2>/dev/null`
24 num_possible_drives=`echo $possible_drives | wc -l`
25
26 if [ $num_possible_drives = "0" ] ; then
27 echo " Failed to automatically find and sdcard webapps folders"
28 echo " Explicitly set the environment variable SDCARD_WEBAPPS to control"
29 echo " installation on the Android phone"
30 else
31 if [ $num_possible_drives = "1" ] ; then
32 export SDCARD_WEBAPPS=${possible_drives[0]}
33 else
34 echo " Detected more than one possible sdcard webapps folders:"
35 echo " $possible_drives"
36 echo " Explicitly set the environment variable SDCARD_WEBAPPS to control"
37 echo " which one is used for installation on the Android phone"
38 fi
39 fi
40 fi
41fi
42
43if [ "x$SDCARD_WEBAPPS" != "x" ] ; then
44 export SDCARD_GSDL3HOME=$SDCARD_WEBAPPS/greenstone3/
45 echo ""
46 echo " Using:"
47 echo " $SDCARD_GSDL3HOME"
48 echo " as the installation point for the Greenstone servlet"
49 echo ""
50fi
51
52
53if [ "x$IJETTY_PORT" = "x" ] ; then
54 export IJETTY_PORT=8080
55 echo ""
56 echo " Setting IJETTY_PORT to 8080"
57 echo " Explicityly set this environment variable to override this default"
58 echo ""
59else
60 echo ""
61 echo " Using IJETTY PORT = $IJETTY_PORT"
62 echo ""
63fi
64
65echo "+ Your environment has now been set up with iJetty extension for Greenstone"
66
67
Note: See TracBrowser for help on using the repository browser.