root/gs2-extensions/video-and-audio-src/trunk/setup.bash @ 22776

Revision 22776, 1.1 KB (checked in by davidb, 9 years ago)

Renaming to 'Video and Audio', and updating setup.bat so it doesn't use a hard-wired 'video' as its extension name (now worked out from the directory it is in)

Line 
1
2extdesc="the Video and Audio Extension"
3
4full_setup=`pwd`/${BASH_SOURCE}
5fulldir=${full_setup%/*}
6fulldir=${fulldir%/.}
7
8source cascade-make/lib/cascade-lib.bash
9
10if [ "x$GEXTVIDEO" = "x" ] ; then
11  export GEXTVIDEO=$fulldir
12  export GEXTVIDEO_INSTALLED=$GEXTVIDEO/$GSDLOS
13
14  export PATH=$GEXTVIDEO_INSTALLED/bin:$PATH
15
16  if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
17    export LD_LIBRARY_PATH=$GEXTVIDEO_INSTALLED/lib
18  else
19    export LD_LIBRARY_PATH=$GEXTVIDEO_INSTALLED/lib:$LD_LIBRARY_PATH
20  fi
21  if [ "x$DYLD_LIBRARY_PATH" = "x" ] ; then
22    export DYLD_LIBRARY_PATH=$GEXTVIDEO_INSTALLED/lib
23  else
24    export DYLD_LIBRARY_PATH=$GEXTVIDEO_INSTALLED/lib:$DYLD_LIBRARY_PATH
25  fi
26
27  if [ -e "devel-srcpack" ] ; then
28    export LD_LIBRARY_PATH=$GEXTVIDEO_INSTALLED/devel/lib:$LD_LIBRARY_PATH
29    export DYLD_LIBRARY_PATH=$GEXTVIDEO_INSTALLED/devel/lib:$DYLD_LIBRARY_PATH
30  fi
31
32 
33  extdir=${GEXTVIDEO##*/}
34
35  if [ "x$GSDLEXTS" = "x" ] ; then
36    export GSDLEXTS=$extdir
37  else
38    export GSDLEXTS=$GSDLEXTS:$extdir
39  fi
40
41
42  echo "+Your environment is now setup for $extdesc"
43else
44  echo "+Your environment is already setup for $extdesc"
45fi
Note: See TracBrowser for help on using the browser.