summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2012-12-05 19:31:43 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2012-12-05 19:31:43 (GMT)
commit288ac9d627df92cfcffdc28180f0f19ef18a4cf8 (patch)
tree21ddbf0bc3cdb5db32c2536a2dad8791a26f88ad /scripts
parent4e9c4733378bf922f92117b415362d7c5353e649 (diff)
scripts/xldd: use user's sed and grep
xldd uses sed and grep as detected by ./configure. This works well if is used on the machine that build the toolchain. But if the user moves the toolchain to another machine where sed and grep are not in the same directory (eg. /bin/sed vs. /usr/bin/sed), then xldd will stop functionning. Fix that by using ${SED} and ${GREP} if they are set in the environment. Reported-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/xldd.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/xldd.in b/scripts/xldd.in
index 273a60d..c906240 100755
--- a/scripts/xldd.in
+++ b/scripts/xldd.in
@@ -4,8 +4,8 @@
export LC_ALL=C
version="@@CT_VERSION@@"
bits="@@CT_BITS@@"
-sed="@@CT_sed@@"
-grep="@@CT_grep@@"
+sed="${SED:-@@CT_sed@@}"
+grep="${GREP:-@@CT_grep@@}"
my_name="$( basename "${0}" )"
prefix="${0%-ldd}"