diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-07-21 07:21:11 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-07-21 07:21:11 -0500 |
commit | 1659bbe4298652972f3b8e517f60e7d4e698bbf0 (patch) | |
tree | cfd9f6547a4689c3638a0cd679362d9ddd7fb843 /g | |
parent | cb4c69121a7ca4db4748a78a16d87aaadb3aa9fa (diff) |
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
Diffstat (limited to 'g')
-rwxr-xr-x | g | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |