$OpenBSD: patch-src_fwbuilder_unit_tests_unit_tests_sh,v 1.2 2010/10/11 20:19:11 sthen Exp $

XXX handrolled; no trailing eol

--- src/fwbuilder/unit_tests/unit_tests.sh.orig	Sun Feb 28 20:11:11 2010
+++ src/fwbuilder/unit_tests/unit_tests.sh	Sun Oct 10 10:17:28 2010
@@ -1,11 +1,11 @@
-#!/bin/bash
+#!/bin/sh
 
 commands=$@
 
-for directory in `find . -maxdepth 1 -type d -regex '\./[A-Za-z0-9\-\_]*'`
+for directory in `find . -maxdepth 1 -type d -name '[A-Za-z0-9_-]*'`
 do
     cd $directory
-    [ ! -e Makefile ] && qmake -spec $QMAKESPEC
+    [ ! -e Makefile ] && ${QMAKE} -spec $QMAKESPEC
     $commands || exit 1
     cd -
 done;
\ No newline at end of file
