source: gs3-extensions/fedora/trunk/src/gs3-setup.sh@ 26412

Last change on this file since 26412 was 26412, checked in by ak19, 11 years ago

Adding Greenstone 3 setup files for the fedora extension since that's how we usually set up extension environments.

File size: 1.0 KB
Line 
1
2extdesc="the GS3 Fedora (with GSearch) Extension"
3
4full_setup=`pwd`/${BASH_SOURCE}
5fulldir=${full_setup%/*}
6fulldir=${fulldir%/.}
7
8if test -z $GSDLOS ; then
9 GSDLOS=`uname -s | tr '[A-Z]' '[a-z]'`
10 # check for running bash under Cygwin
11 if test "`echo $GSDLOS | sed 's/cygwin//'`" != "$GSDLOS" ;
12 then
13 GSDLOS=windows
14 fi
15 # check for running bash under MinGW/MSys
16 if test "`echo $GSDLOS | sed 's/mingw//'`" != "$GSDLOS" ;
17 then
18 GSDLOS=windows
19 fi
20 echo "GSDLOS was not set. Setting it to '$GSDLOS'"
21 export GSDLOS
22fi
23
24
25#if [ "x$FEDORA_HOME" = "x" ] ; then
26if [ "x$GEXT_FEDORA" = "x" ] ; then
27 export FEDORA_HOME=`pwd`
28 export GEXT_FEDORA=$FEDORA_HOME
29 export FEDORA_VERSION=3
30
31 export PATH=$FEDORA_HOME/server/bin:$PATH
32 export PATH=$FEDORA_HOME/client/bin:$PATH
33
34 extdir=${GEXT_FEDORA##*/}
35
36 if [ "x$GSDL3EXTS" = "x" ] ; then
37 export GSDL3EXTS=$extdir
38 else
39 export GSDL3EXTS=$GSDL3EXTS:$extdir
40 fi
41
42
43 echo "+Your environment is now setup for $extdesc"
44else
45 echo "+Your environment is already setup for $extdesc"
46fi
Note: See TracBrowser for help on using the repository browser.