]> arthur.barton.de Git - ngircd.git/commitdiff
Set $srcdir if not already set by make.
authorAlexander Barton <alex@barton.de>
Sat, 4 Sep 2004 14:22:38 +0000 (14:22 +0000)
committerAlexander Barton <alex@barton.de>
Sat, 4 Sep 2004 14:22:38 +0000 (14:22 +0000)
src/testsuite/tests.sh

index 401a55da8b057cd975acab61c73a2dbe99cfeae3..31d99d9d971c526770e94fdff7aac56c0f8c1963 100755 (executable)
@@ -1,6 +1,9 @@
 #!/bin/sh
 # ngIRCd Test Suite
-# $Id: tests.sh,v 1.4 2003/08/22 11:31:18 alex Exp $
+# $Id: tests.sh,v 1.5 2004/09/04 14:22:38 alex Exp $
+
+# detect source directory
+[ -z "$srcdir" ] && srcdir=`dirname $0`
 
 name=`basename $0`
 test=`echo ${name} | cut -d '.' -f 1`