source: gs2-extensions/video-and-audio/trunk/src/setup.bash@ 36844

Last change on this file since 36844 was 36844, checked in by davidb, 19 months ago

Changes to mean scripts can be run without explicit source setup.bash first

File size: 1.7 KB
Line 
1
2extdesc="the Video and Audio Extension"
3
4full_setup=`pwd`/${BASH_SOURCE}
5fulldir=${full_setup%/*}
6fulldir=${fulldir%/.}
7
8if [ "x$GSDLHOME" = "x" ] && [ "x$GSDL3SRCHOME" = "x" ] ; then
9 if [ -e ../../setup.bash ] ; then
10 export gsopt_noexts=1 && pushd ../.. && source ./setup.bash && popd
11 export gsopt_noexts=
12 elif [ -e ../../gs3-setup.sh ] ; then
13 export gsopt_noexts=1 && pushd ../.. && source ./gs3-setup.sh && 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 fi
23fi
24
25
26
27#source cascade-make/bin/script/test-setup.bash
28source cascade-make/lib/cascade-lib.bash
29
30if [ "x$GEXTVIDEO" = "x" ] ; then
31 export GEXTVIDEO=$fulldir
32 export GEXTVIDEO_INSTALLED=$GEXTVIDEO/$GSDLOS
33
34 export PATH=$GEXTVIDEO_INSTALLED/bin:$PATH
35
36 if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
37 export LD_LIBRARY_PATH=$GEXTVIDEO_INSTALLED/lib
38 else
39 export LD_LIBRARY_PATH=$GEXTVIDEO_INSTALLED/lib:$LD_LIBRARY_PATH
40 fi
41 if [ "x$DYLD_LIBRARY_PATH" = "x" ] ; then
42 export DYLD_LIBRARY_PATH=$GEXTVIDEO_INSTALLED/lib
43 else
44 export DYLD_LIBRARY_PATH=$GEXTVIDEO_INSTALLED/lib:$DYLD_LIBRARY_PATH
45 fi
46
47 if [ -e "devel-srcpack" ] ; then
48 export LD_LIBRARY_PATH=$GEXTVIDEO_INSTALLED/devel/lib:$LD_LIBRARY_PATH
49 export DYLD_LIBRARY_PATH=$GEXTVIDEO_INSTALLED/devel/lib:$DYLD_LIBRARY_PATH
50 fi
51
52
53 extdir=${GEXTVIDEO##*/}
54
55 if [ "x$GSDLEXTS" = "x" ] ; then
56 export GSDLEXTS=$extdir
57 else
58 export GSDLEXTS=$GSDLEXTS:$extdir
59 fi
60
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.