source: gs2-extensions/apache-jena/trunk/src/setup.bash@ 34971

Last change on this file since 34971 was 34971, checked in by davidb, 3 years ago

Updated to also include bin/script3 in PATH

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1
2extdesc="the Apache Jena 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
25if [ "x$GEXT_JENA" = "x" ] ; then
26 export GEXT_JENA=`pwd`
27 export GEXT_JENA_INSTALLED=$GEXT_JENA/$GSDLOS
28
29 export FUSEKI_HOME=$GEXT_JENA
30
31 if [ -d "$GEXT_JENA/bin/script" ] ; then
32 export PATH=$GEXT_JENA/bin/script:$PATH
33 fi
34
35 if [ -d "$GEXT_JENA/bin/script3" ] ; then
36 export PATH=$GEXT_JENA/bin/script3:$PATH
37 fi
38
39 if [ -d "$GEXT_JENA_INSTALLED/bin" ] ; then
40 export PATH=$GEXT_JENA_INSTALLED/bin:$PATH
41 fi
42
43
44 if [ -d "$GEXT_JENA/lib" ] ; then
45 if [ "$GSDLOS" = "linux" ] ; then
46 export LD_LIBRARY_PATH=$GEXT_JENA/lib:$LD_LIBRARY_PATH
47 elif [ "$GSDLOS" = "darwin" ] ; then
48 export DYLD_LIBRARY_PATH=$GEXT_JENA/lib:$DYLD_LIBRARY_PATH
49 fi
50 fi
51
52 extdir=${GEXT_JENA##*/}
53
54 if [ "x$GSDLEXTS" = "x" ] ; then
55 export GSDLEXTS=$extdir
56 else
57 export GSDLEXTS=$GSDLEXTS:$extdir
58 fi
59
60
61 echo "+Your environment is now setup for $extdesc"
62else
63 echo "+Your environment is already setup for $extdesc"
64fi
Note: See TracBrowser for help on using the repository browser.