From 9ddb93478491336d531a1705a199c6e3cb27ca60 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 4 Sep 2004 14:22:38 +0000 Subject: [PATCH] Set $srcdir if not already set by make. --- src/testsuite/tests.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/testsuite/tests.sh b/src/testsuite/tests.sh index 401a55da..31d99d9d 100755 --- a/src/testsuite/tests.sh +++ b/src/testsuite/tests.sh @@ -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`