source: gs2-extensions/video/trunk/setup.bash@ 22253

Last change on this file since 22253 was 22253, checked in by davidb, 11 years ago

Better handling of home directory and extension name

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