]> git.sur5r.net Git - openldap/commitdiff
quick hack to check for awk
authorPierangelo Masarati <ando@openldap.org>
Wed, 5 Feb 2003 14:50:15 +0000 (14:50 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 5 Feb 2003 14:50:15 +0000 (14:50 +0000)
tests/scripts/test011-subtree-repl

index 3089ba077910bdd7879af301e8fb5c54f03f6b09..ed1a9c10a4669a67335964914fb4ef296be3f07c 100755 (executable)
@@ -41,6 +41,14 @@ if test ! -x $SLURPD ; then
        exit 0
 fi
 
+# quick hack to check for awk
+echo "looking for a POSIX compliant awk"
+awk -W version >/dev/null 2>&1
+if test $? != 0 ; then
+       echo "This test requires awk"
+       exit 0
+fi
+
 echo "Cleaning up in $DBDIR..."
 rm -f $DBDIR/[!C]*
 echo "Cleaning up in $REPLDIR..."