diff options
author | Fabian Freyer <fabian.freyer@physik.tu-berlin.de> | 2014-08-26 22:52:18 (GMT) |
---|---|---|
committer | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-08-28 20:32:17 (GMT) |
commit | fd5720e6d99566c4dafb65f135039772623f232b (patch) | |
tree | 4bbc0695a45240a5910097d1f4b7845ab0e53ba0 /scripts/crosstool-NG.sh.in | |
parent | 22f87a8a38af52abcd25eff9e23abd1f5d753790 (diff) |
scripts/crosstool-NG: use ${grep} instead of 'grep'
Helps building on BSD-like systems.
Reported-by: Fabian Freyer <fabian.freyer@physik.tu-berlin.de>
Signed-off-by: "Fabian Freyer" <fabian.freyer@physik.tu-berlin.de>
[yann.morin.1998@free.fr: split the original patch]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Fabian Freyer <fabian.freyer@physik.tu-berlin.de>
Diffstat (limited to 'scripts/crosstool-NG.sh.in')
-rw-r--r-- | scripts/crosstool-NG.sh.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index 3699500..3359bac 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -125,7 +125,7 @@ CT_DoLog INFO "Build started ${CT_STAR_DATE_HUMAN}" # We really need to extract from ,config and not .config.2, as we # do want the kconfig's values, not our mangled config with arrays. CT_DoStep DEBUG "Dumping user-supplied crosstool-NG configuration" -CT_DoExecLog DEBUG grep -E '^(# |)CT_' .config +CT_DoExecLog DEBUG ${grep} -E '^(# |)CT_' .config CT_EndStep CT_DoLog DEBUG "Unsetting and unexporting MAKEFLAGS" @@ -570,9 +570,9 @@ if [ -z "${CT_RESTART}" ]; then CT_DoLog EXTRA " build = ${CT_REAL_BUILD}" CT_DoLog EXTRA " host = ${CT_REAL_HOST}" CT_DoLog EXTRA " target = ${CT_TARGET}" - set |grep -E '^CT_.+=' |sort |CT_DoLog DEBUG + set |${grep} -E '^CT_.+=' |sort |CT_DoLog DEBUG CT_DoLog DEBUG "Other environment:" - printenv |grep -v -E '^CT_.+=' |CT_DoLog DEBUG + printenv |${grep} -v -E '^CT_.+=' |CT_DoLog DEBUG CT_EndStep fi |