From 1d63112714b926b5e8b2e9c1f17745764b87daf5 Mon Sep 17 00:00:00 2001
From: Vadim Pisarevsky <no@email>
Date: Tue, 1 Jun 2010 15:34:43 +0000
Subject: [PATCH] remove bash'ism in the samples build script (thanks to
 iwamatsu for the patch)

---
 samples/c/build_all.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/samples/c/build_all.sh b/samples/c/build_all.sh
index 711412b5fc..787474aa2f 100644
--- a/samples/c/build_all.sh
+++ b/samples/c/build_all.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-if [[ $# > 0 ]] ; then
+if [ $# -gt 0 ] ; then
 	base=`basename $1 .c`
 	echo "compiling $base"
 	gcc -ggdb `pkg-config opencv --cflags --libs` $base.c -o $base