[Libreoffice-commits] .: g

Norbert Thiebaud nthiebaud at kemper.freedesktop.org
Sat Jul 21 05:21:50 PDT 2012


 g |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1659bbe4298652972f3b8e517f60e7d4e698bbf0
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Sat Jul 21 07:21:11 2012 -0500

    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

diff --git a/g b/g
index 7ec3bda..902f3ac 100755
--- a/g
+++ b/g
@@ -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"


More information about the Libreoffice-commits mailing list