Should fix grep error.

This commit is contained in:
Themaister 2011-06-15 00:26:44 +02:00
parent 7cdea39c95
commit 3099a79bac

View File

@ -104,7 +104,7 @@ parse_input()
--enable-*) --enable-*)
enable=`echo $1 | sed 's|^--enable-||'` enable=`echo $1 | sed 's|^--enable-||'`
if [ -z "`echo $COMMAND_LINE_OPTS_ENABLE | grep -i $enable`" ]; then if [ -z "`echo $COMMAND_LINE_OPTS_ENABLE | grep -i -- $enable`" ]; then
print_help print_help
exit 1 exit 1
fi fi
@ -113,7 +113,7 @@ parse_input()
--disable-*) --disable-*)
disable=`echo $1 | sed 's|^--disable-||'` disable=`echo $1 | sed 's|^--disable-||'`
if [ -z "`echo $COMMAND_LINE_OPTS_ENABLE | grep -i $disable`" ]; then if [ -z "`echo $COMMAND_LINE_OPTS_ENABLE | grep -i -- $disable`" ]; then
print_help print_help
exit 1 exit 1
fi fi
@ -123,7 +123,7 @@ parse_input()
--with-*) --with-*)
arg="`echo $1 | sed 's|^--with-\S\S*=||'`" arg="`echo $1 | sed 's|^--with-\S\S*=||'`"
with=`echo $1 | sed 's|^--with-\(\S\S*\)=.*$|\1|'` with=`echo $1 | sed 's|^--with-\(\S\S*\)=.*$|\1|'`
if [ -z "`echo $COMMAND_LINE_OPTS_STRINGS | grep -i $with`" ]; then if [ -z "`echo $COMMAND_LINE_OPTS_STRINGS | grep -i -- $with`" ]; then
print_help print_help
exit 1 exit 1
fi fi