1 |
|
---|
2 | extdesc="the Structured Audio Extension"
|
---|
3 |
|
---|
4 | full_setup=`pwd`/${BASH_SOURCE}
|
---|
5 | fulldir=${full_setup%/*}
|
---|
6 | fulldir=${fulldir%/.}
|
---|
7 |
|
---|
8 | if [ "x$GSDLHOME" = "x" ] ; then
|
---|
9 | if [ -e ../../gs3-setup.sh ] ; then
|
---|
10 | export gsopt_noexts=1 && pushd ../.. && source ./gs3-setup.sh && popd
|
---|
11 | export gsopt_noexts=
|
---|
12 | elif [ -e ../../setup.bash ] ; then
|
---|
13 | export gsopt_noexts=1 && pushd ../.. && source ./setup.bash && popd
|
---|
14 | export gsopt_noexts=
|
---|
15 | else
|
---|
16 | # backstop
|
---|
17 | GSDLOS=`uname -s | tr '[A-Z]' '[a-z]'`
|
---|
18 | # check for running bash under cygwin
|
---|
19 | if test "`echo $GSDLOS | sed 's/cygwin//'`" != "$GSDLOS" ; then
|
---|
20 | GSDLOS=windows
|
---|
21 | fi
|
---|
22 |
|
---|
23 | fi
|
---|
24 | fi
|
---|
25 |
|
---|
26 | if [ "x$GEXT_STRUCTURED_AUDIO" = "x" ] ; then
|
---|
27 | export GEXT_STRUCTURED_AUDIO=$fulldir
|
---|
28 | export GEXT_STRUCTURED_AUDIO_INSTALLED=$GEXT_STRUCTURED_AUDIO/$GSDLOS
|
---|
29 |
|
---|
30 | export PATH=$GEXT_STRUCTURED_AUDIO_INSTALLED/bin:$GEXT_STRUCTURED_AUDIO/bin/script:$PATH
|
---|
31 |
|
---|
32 | if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
|
---|
33 | export LD_LIBRARY_PATH=$GEXT_STRUCTURED_AUDIO_INSTALLED/lib
|
---|
34 | else
|
---|
35 | export LD_LIBRARY_PATH=$GEXT_STRUCTURED_AUDIO_INSTALLED/lib:$LD_LIBRARY_PATH
|
---|
36 | fi
|
---|
37 | if [ "x$DYLD_LIBRARY_PATH" = "x" ] ; then
|
---|
38 | export DYLD_LIBRARY_PATH=$GEXT_STRUCTURED_AUDIO_INSTALLED/lib
|
---|
39 | else
|
---|
40 | export DYLD_LIBRARY_PATH=$GEXT_STRUCTURED_AUDIO_INSTALLED/lib:$DYLD_LIBRARY_PATH
|
---|
41 | fi
|
---|
42 | if [ "x$PKG_CONFIG_PATH" = "x" ] ; then
|
---|
43 | export PKG_CONFIG_PATH=$GEXT_STRUCTURED_AUDIO_INSTALLED/pkgconfig
|
---|
44 | else
|
---|
45 | export PKG_CONFIG_PATH=$GEXT_STRUCTURED_AUDIO_INSTALLED/pkgconfig:$PKG_CONFIG_PATH
|
---|
46 | fi
|
---|
47 |
|
---|
48 | extdir=${GEXT_STRUCTURED_AUDIO##*/}
|
---|
49 |
|
---|
50 | if [ "x$GSDL3EXTS" = "x" ] ; then
|
---|
51 | export GSDL3EXTS=$extdir
|
---|
52 | else
|
---|
53 | export GSDL3EXTS=$GSDL3EXTS:$extdir
|
---|
54 | fi
|
---|
55 |
|
---|
56 | echo "+Your environment is now setup for $extdesc"
|
---|
57 | else
|
---|
58 | echo "+Your environment is already setup for $extdesc"
|
---|
59 | fi
|
---|