summaryrefslogtreecommitdiff
path: root/g
diff options
context:
space:
mode:
authorTomofumi Yagi <yagit@mknada.sakura.ne.jp>2015-02-14 19:21:57 +0900
committerCaolán McNamara <caolanm@redhat.com>2015-02-17 13:26:12 +0000
commit0293ec98c92fd58a592f7dd86fbbf47e7b9195c6 (patch)
tree43f9d1405108348e343b3917045c01adb4c233da /g
parentea91563683b5c5df40ec5f4eb9c3005d7bfcf71d (diff)
g: SRC_ROOT may not contain path string in a localized environment
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 <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'g')
-rwxr-xr-xg2
1 files changed, 1 insertions, 1 deletions
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