Kaydet (Commit) 1659bbe4 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

suppress distracting message in ./g on some platform

we use perl to determine the absolute path of argument thought to be
fiels. but sometime they are not file at all and that call 'fail'.
The code is meant to deal with such case, but
on some platform that produce a scary message on stderr in the
middle of the build log.
This hide these messages.

Change-Id: I52d43e0b26847ab091d76fd446a05c4d84836a77
üst cb4c6912
......@@ -233,7 +233,7 @@ while shift ; do
FILESNUM=$(($FILESNUM+1))
else
# make the paths absolute
FILES[$FILESNUM]=$(perl -e 'use Cwd "abs_path"; print abs_path(shift);' "$PARAM")
FILES[$FILESNUM]=$(perl -e 'use Cwd "abs_path"; print abs_path(shift);' "$PARAM" 2>/dev/null)
if [ -z "${FILES[$FILESNUM]}" -o ! -e "${FILES[$FILESNUM]}" ] ; then
# it is probably not a file, but a tag name, or something
FILES[$FILESNUM]="$PARAM"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment