Last change
on this file since 24311 was 24311, checked in by davidb, 13 years ago |
Supporting packages for audioDB
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Rev | Line | |
---|
[24311] | 1 |
|
---|
| 2 | extdesc="the audioDB 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_AUDIODB" = "x" ] ; then
|
---|
| 26 | export GEXT_AUDIODB=`pwd`
|
---|
| 27 | export GEXTAUDIODB_INSTALLED=$GEXT_AUDIODB/$GSDLOS
|
---|
| 28 |
|
---|
| 29 | if [ -d "$GEXT_AUDIODB/bin/script" ] ; then
|
---|
| 30 | export PATH=$GEXT_AUDIODB/bin/script:$PATH
|
---|
| 31 | fi
|
---|
| 32 |
|
---|
| 33 | if [ -d "$GEXT_AUDIODB/lib" ] ; then
|
---|
| 34 | if [ "$GSDLOS" = "linux" ] ; then
|
---|
| 35 | export LD_LIBRARY_PATH=$GEXT_AUDIODB/lib:$LD_LIBRARY_PATH
|
---|
| 36 | elif [ "$GSDLOS" = "darwin" ] ; then
|
---|
| 37 | export DYLD_LIBRARY_PATH=$GEXT_AUDIODB/lib:$DYLD_LIBRARY_PATH
|
---|
| 38 | fi
|
---|
| 39 | fi
|
---|
| 40 |
|
---|
| 41 | extdir=${GEXT_AUDIODB##*/}
|
---|
| 42 |
|
---|
| 43 | if [ "x$GSDLEXTS" = "x" ] ; then
|
---|
| 44 | export GSDLEXTS=$extdir
|
---|
| 45 | else
|
---|
| 46 | export GSDLEXTS=$GSDLEXTS:$extdir
|
---|
| 47 | fi
|
---|
| 48 |
|
---|
| 49 |
|
---|
| 50 | echo "+Your environment is now setup for $extdesc"
|
---|
| 51 | else
|
---|
| 52 | echo "+Your environment is already setup for $extdesc"
|
---|
| 53 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.