Mercurial > projects > ldc
diff bin/ldmd @ 1583:593f99fddd2f
basename => dirname, thanks Hxal
author | Moritz Warning <moritzwarning@web.de> |
---|---|
date | Tue, 22 Sep 2009 20:26:50 +0200 |
parents | c3c23d2c5407 |
children |
line wrap: on
line diff
--- a/bin/ldmd Sat Sep 19 13:05:10 2009 +0100 +++ b/bin/ldmd Tue Sep 22 20:26:50 2009 +0200 @@ -1,7 +1,7 @@ #! /usr/bin/env bash # Default to 'ldc' next to this file -LDC=`basename "$0"`/ldc +LDC=`dirname "$0"`/ldc if [ ! -x "$LDC" ]; then # If that doesn't work, assume this script was called via $PATH # and do the same for ldc