comparison 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
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"`/ldc 4 LDC=`dirname "$0"`/ldc
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 ldc &> /dev/null; then 8 if which ldc &> /dev/null; then
9 LDC=ldc 9 LDC=ldc