unigenlogin.bash 538 B

1234567891011121314151617
  1. #!/bin/bash
  2. # assuming that this macro is sitting at its original location,
  3. # its path can be used to set the unigen enviroment
  4. filnam=$BASH_SOURCE # filename of this (sourced) macro
  5. absnam=`readlink -f $filnam` # absolute filename
  6. pather=`dirname $absnam` # path to the config directory
  7. #pather=`dirname $pather` # path to the top unigen directory
  8. export UNIGEN=$pather
  9. export PATH=${UNIGEN}/lib':'${UNIGEN}/bin':'${PATH}
  10. export LD_LIBRARY_PATH=${UNIGEN}/lib':'${LD_LIBRARY_PATH}
  11. echo UNIGEN = $UNIGEN