Last change
on this file since 28682 was 28682, checked in by davidb, 10 years ago |
Extension needs 'ruby' to run Fuseki scripts such as 's-put' so setup and CASCADE-CONFIGURE files changed to install binary specific files
|
-
Property svn:executable
set to
*
|
File size:
1.4 KB
|
Rev | Line | |
---|
[28391] | 1 |
|
---|
| 2 | extdesc="the Apache Jena Extension"
|
---|
| 3 |
|
---|
| 4 | full_setup=`pwd`/${BASH_SOURCE}
|
---|
| 5 | fulldir=${full_setup%/*}
|
---|
| 6 | fulldir=${fulldir%/.}
|
---|
| 7 |
|
---|
[28413] | 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 |
|
---|
[28391] | 25 | if [ "x$GEXT_JENA" = "x" ] ; then
|
---|
| 26 | export GEXT_JENA=`pwd`
|
---|
[28682] | 27 | export GEXT_JENA_INSTALLED=$GEXT_JENA/$GSDLOS
|
---|
[28391] | 28 |
|
---|
[28413] | 29 | export FUSEKI_HOME=$GEXT_JENA
|
---|
[28391] | 30 |
|
---|
[28413] | 31 | if [ -d "$GEXT_JENA_INSTALLED/bin/script" ] ; then
|
---|
| 32 | export PATH=$GEXT_JENA_INSTALLED/bin/script:$PATH
|
---|
[28391] | 33 | fi
|
---|
| 34 |
|
---|
[28682] | 35 | if [ -d "$GEXT_JENA_INSTALLED/bin" ] ; then
|
---|
| 36 | export PATH=$GEXT_JENA_INSTALLED/bin:$PATH
|
---|
| 37 | fi
|
---|
[28413] | 38 |
|
---|
| 39 |
|
---|
[28682] | 40 | if [ -d "$GEXT_JENA/lib" ] ; then
|
---|
| 41 | if [ "$GSDLOS" = "linux" ] ; then
|
---|
| 42 | export LD_LIBRARY_PATH=$GEXT_JENA/lib:$LD_LIBRARY_PATH
|
---|
| 43 | elif [ "$GSDLOS" = "darwin" ] ; then
|
---|
| 44 | export DYLD_LIBRARY_PATH=$GEXT_JENA/lib:$DYLD_LIBRARY_PATH
|
---|
| 45 | fi
|
---|
| 46 | fi
|
---|
[28413] | 47 |
|
---|
[28391] | 48 | extdir=${GEXT_JENA##*/}
|
---|
| 49 |
|
---|
| 50 | if [ "x$GSDLEXTS" = "x" ] ; then
|
---|
| 51 | export GSDLEXTS=$extdir
|
---|
| 52 | else
|
---|
| 53 | export GSDLEXTS=$GSDLEXTS:$extdir
|
---|
| 54 | fi
|
---|
| 55 |
|
---|
| 56 |
|
---|
| 57 | echo "+Your environment is now setup for $extdesc"
|
---|
| 58 | else
|
---|
| 59 | echo "+Your environment is already setup for $extdesc"
|
---|
| 60 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.