source: gs3-extensions/structured-audio/trunk/setup.bash@ 37593

Last change on this file since 37593 was 37593, checked in by davidb, 13 months ago

Moving older way of doing things out of the way (deprecated)

File size: 1.9 KB
Line 
1
2extdesc="the Structured Audio Extension"
3
4full_setup=`pwd`/${BASH_SOURCE}
5fulldir=${full_setup%/*}
6fulldir=${fulldir%/.}
7
8if [ "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
24fi
25
26if [ "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$GSDLEXTS" = "x" ] ; then
51 export GSDLEXTS=$extdir
52 else
53 export GSDLEXTS=$GSDLEXTS:$extdir
54 fi
55
56 if [ "x$GSDL3EXTS" = "x" ] ; then
57 export GSDL3EXTS=$extdir
58 else
59 export GSDL3EXTS=$GSDL3EXTS:$extdir
60 fi
61
62 echo "+Your environment is now setup for $extdesc"
63else
64 echo "+Your environment is already setup for $extdesc"
65fi
Note: See TracBrowser for help on using the repository browser.