remove bash'ism in the samples build script (thanks to iwamatsu for the patch)

This commit is contained in:
Vadim Pisarevsky 2010-06-01 15:34:43 +00:00
parent e5872cd8bb
commit 1d63112714

View File

@ -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