Rev | Line | |
---|
[26803] | 1 |
|
---|
| 2 | extdesc="the Hugin 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$GEXT_HUGIN" = "x" ] ; then
|
---|
| 26 | export GEXT_HUGIN=`pwd`
|
---|
| 27 | export GEXTHUGIN_INSTALLED=$GEXT_HUGIN/$GSDLOS
|
---|
| 28 |
|
---|
| 29 | if [ -d "$GEXTHUGIN_INSTALLED/bin/script" ] ; then
|
---|
| 30 | export PATH=$GEXTHUGIN_INSTALLED/bin/script:$PATH
|
---|
| 31 | fi
|
---|
| 32 |
|
---|
| 33 | if [ -d "$GEXTHUGIN_INSTALLED/bin" ] ; then
|
---|
| 34 | export PATH=$GEXTHUGIN_INSTALLED/bin:$PATH
|
---|
| 35 | fi
|
---|
| 36 |
|
---|
| 37 | if [ -d "$GEXTHUGIN_INSTALLED/lib" ] ; then
|
---|
| 38 | if [ "$GSDLOS" = "linux" ] ; then
|
---|
| 39 | export LD_LIBRARY_PATH=$GEXTHUGIN_INSTALLED/lib:$LD_LIBRARY_PATH
|
---|
| 40 | elif [ "$GSDLOS" = "darwin" ] ; then
|
---|
| 41 | export DYLD_LIBRARY_PATH=$GEXTHUGIN_INSTALLED/lib:$DYLD_LIBRARY_PATH
|
---|
| 42 | fi
|
---|
| 43 | fi
|
---|
| 44 |
|
---|
| 45 | extdir=${GEXT_HUGIN##*/}
|
---|
| 46 |
|
---|
| 47 | if [ "x$GSDL3EXTS" = "x" ] ; then
|
---|
| 48 | export GSDL3EXTS=$extdir
|
---|
| 49 | else
|
---|
| 50 | export GSDL3EXTS=$GSDL3EXTS:$extdir
|
---|
| 51 | fi
|
---|
| 52 |
|
---|
| 53 |
|
---|
| 54 | echo "+Your environment is now setup for $extdesc"
|
---|
| 55 | else
|
---|
| 56 | echo "+Your environment is already setup for $extdesc"
|
---|
| 57 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.