提交 86334b6a 编写于 作者: K Kristian Amlie 提交者: Richard Levitte

Don't use "grep -q", "-q" is not POSIX, and fails on Solaris.

Reviewed-by: NRich Salz <rsalz@openssl.org>
Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 b9ee2dac
......@@ -16,8 +16,8 @@ fi
if [ "$MAKEDEPEND" = "" ]; then MAKEDEPEND=makedepend; fi
cp Makefile Makefile.save
if ${MAKEDEPEND} --version 2>&1 | grep -q "clang" ||
echo $MAKEDEPEND | grep -q "gcc"; then
if ${MAKEDEPEND} --version 2>&1 | grep "clang" > /dev/null ||
echo $MAKEDEPEND | grep "gcc" > /dev/null; then
args=""
while [ $# -gt 0 ]; do
if [ "$1" != "--" ]; then args="$args $1"; fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册