Last change
on this file since 26434 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 |
|
---|
2 | extdesc="the GS3 Fedora (with GSearch) Extension"
|
---|
3 |
|
---|
4 | full_setup=`pwd`/${BASH_SOURCE}
|
---|
5 | fulldir=${full_setup%/*}
|
---|
6 | fulldir=${fulldir%/.}
|
---|
7 |
|
---|
8 | if 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
|
---|
22 | fi
|
---|
23 |
|
---|
24 |
|
---|
25 | #if [ "x$FEDORA_HOME" = "x" ] ; then
|
---|
26 | if [ "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"
|
---|
44 | else
|
---|
45 | echo "+Your environment is already setup for $extdesc"
|
---|
46 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.