Changeset 22253

Show
Ignore:
Timestamp:
10.06.2010 23:10:50 (9 years ago)
Author:
davidb
Message:

Better handling of home directory and extension name

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/video/trunk/setup.bash

    r21173 r22253  
    11 
    22extdesc="the Video Extension" 
     3 
     4full_setup=`pwd`/${BASH_SOURCE} 
     5fulldir=${full_setup%/*} 
    36 
    47source cascade-make/lib/cascade-lib.bash 
    58 
    69if [ "x$GEXTVIDEO" = "x" ] ; then 
    7   export GEXTVIDEO=`pwd` 
     10  export GEXTVIDEO=$fulldir 
    811  export GEXTVIDEO_INSTALLED=$GEXTVIDEO/$GSDLOS 
    912 
     
    2629  fi 
    2730 
     31   
     32  extdir=${GEXTVIDEO##*/} 
     33 
    2834  if [ "x$GSDLEXTS" = "x" ] ; then 
    29     export GSDLEXTS=video 
     35    export GSDLEXTS=$extdir 
    3036  else  
    31     export GSDLEXTS=$GSDLEXTS:video 
     37    export GSDLEXTS=$GSDLEXTS:extdir 
    3238  fi 
    3339