What directory is script in??? Bad description
From: Billy Patton (bpatton_at_ti.com)
Date: 04/28/05
- Next message: Richard L. Hamilton: "Re: Why cannot truss peek inside sendmsg()"
- Previous message: JS: "Problems running TeXniCcenter with wine"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 28 Apr 2005 13:50:03 -0500
Here is a small script
#!/bin/bash
if [ $# == 0 ] ; then
pod2text $0;
exit 1;
fi;
if [ $1 == '-h' ] ; then
pod2text $0;
exit 1;
fi;
platform=`uname`;
if [ `/bin/uname -s` = 'Linux' ] ; then
if [ `/bin/uname -m` = 'x86_64' ] ; then bit=64;
else bit=32;
fi;
elif [ `/bin/uname -s` = 'SunOS' ] ; then
if [ `/bin/isainfo -b` = 64 ] ; then bit=64;
else bit=32;
fi;
fi
$CDMG_TOOLBOX/bin/$platform/$bit/LaffAdd $*
exit $?;
<<<<
The above script access the correct executable based on platform (Linux/SunOS)
and the bits (32/64)
Notice the $CDMG_TOOLBOX. There is a file that needs to be source'd before
executing the above script.
Question.
What can I replace $CDMG_TOOLBOX with to get it to recognize the physical
directory the script is stored in. I'm thinking that this should be easy.
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodology Group
Dallas, Texas, 214-480-4455, b-patton@ti.com
- Next message: Richard L. Hamilton: "Re: Why cannot truss peek inside sendmsg()"
- Previous message: JS: "Problems running TeXniCcenter with wine"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|