From 0293ec98c92fd58a592f7dd86fbbf47e7b9195c6 Mon Sep 17 00:00:00 2001 From: Tomofumi Yagi Date: Sat, 14 Feb 2015 19:21:57 +0900 Subject: g: SRC_ROOT may not contain path string in a localized environment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When config_host.mk contains non-ascii characters(e.g. Japanese ), SRC_ROOT may contain an error message "Binary file (standard input) matches") from grep, and SRC_ROOT may not contain path string. With '-a' option, grep will work well. Change-Id: Ifaada5f5a11939d624460cd8dcc57d93911ae790 Reviewed-on: https://gerrit.libreoffice.org/14491 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- g | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g') diff --git a/g b/g index bd4270a56910..2db87cf60170 100755 --- a/g +++ b/g @@ -12,7 +12,7 @@ SUBMODULES_ALL="dictionaries helpcontent2 translations" pushd $(dirname $0) > /dev/null if [ -f config_host.mk ] ; then # we are in the BUILDDIR - SRC_ROOT=$(cat config_host.mk | grep SRC_ROOT | sed -e "s/.*=//") + SRC_ROOT=$(cat config_host.mk | grep -a SRC_ROOT | sed -e "s/.*=//") else SRC_ROOT=$(pwd) fi -- cgit