Mercurial > hg > buildtools
changeset 14:edfb5738a86a
Simplify how running directory is determined.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 18 Sep 2011 14:23:40 +0300 |
parents | 25d3461d9f2f |
children | 4dafb2835e21 |
files | hg2cl |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/hg2cl Mon Jan 24 11:37:46 2011 +0200 +++ b/hg2cl Sun Sep 18 14:23:40 2011 +0300 @@ -119,12 +119,8 @@ fi # find the directory that this script resides in -prog="$0" -while test -h "$prog"; do - prog=`ls -ld "$prog" | sed "s/^.*-> \(.*\)/\1/;/^[^/]/s,^,$(dirname "$prog")/,"` -done -dir=`dirname $prog` -dir=`cd $dir && pwd` +dir=`dirname "$0"` +dir=`cd "$dir" && pwd` XSL="$dir/svn2cl.xsl" # redirect stdout to the changelog file if needed