Mercurial > projects > ldc
comparison bin/ldmd2 @ 1583:593f99fddd2f
basename => dirname, thanks Hxal
author | Moritz Warning <moritzwarning@web.de> |
---|---|
date | Tue, 22 Sep 2009 20:26:50 +0200 |
parents | f35a9a77d256 |
children |
comparison
equal
deleted
inserted
replaced
1582:d8e558087001 | 1583:593f99fddd2f |
---|---|
1 #! /usr/bin/env bash | 1 #! /usr/bin/env bash |
2 | 2 |
3 # Default to 'ldc' next to this file | 3 # Default to 'ldc' next to this file |
4 LDC=`basename "$0"`/ldc2 | 4 LDC=`dirname "$0"`/ldc2 |
5 if [ ! -x "$LDC" ]; then | 5 if [ ! -x "$LDC" ]; then |
6 # If that doesn't work, assume this script was called via $PATH | 6 # If that doesn't work, assume this script was called via $PATH |
7 # and do the same for ldc | 7 # and do the same for ldc |
8 if which ldc2 &> /dev/null; then | 8 if which ldc2 &> /dev/null; then |
9 LDC=ldc2 | 9 LDC=ldc2 |