diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2006-05-21 13:32:20 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2006-05-21 13:32:20 +0000 |
commit | f86666bf566c80b27c3b544de1308dd17daeb17b (patch) | |
tree | a8c56e63f43da2ac2f70120c387b31ce4dc6702e /bin | |
parent | 7cf72eaba9a85602ba73bc6bbee0be804b15549f (diff) | |
download | ptxdist-f86666bf566c80b27c3b544de1308dd17daeb17b.tar.gz ptxdist-f86666bf566c80b27c3b544de1308dd17daeb17b.tar.xz |
* variable cleanup; merged from mkl-trunk
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.10-trunk@5519 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ptxdist | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index 832519889..b0d4fe49b 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -14,15 +14,15 @@ DEBUG= # export this, so that children can call the master script, for example # to find out the version number -export PTXDIST=$0 +PTXDIST=${BASH_SOURCE[0]} -if [ -L "$0" ]; then - PTXDIST_TOPDIR=$(cd $(dirname $(readlink $0))/.. && pwd) +if [ -L "$PTXDIST" ]; then + PTXDIST_TOPDIR=$(cd $(dirname $(readlink $PTXDIST))/.. && pwd) else - PTXDIST_TOPDIR=$(cd $(dirname $0)/.. && pwd) + PTXDIST_TOPDIR=$(cd $(dirname $PTXDIST)/.. && pwd) fi -export PTXDIST_WORKSPACE PTXDIST_TOPDIR +export PTXDIST PTXDIST_WORKSPACE PTXDIST_TOPDIR # |