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>
This commit is contained in:
Yann E. MORIN" 2012-12-05 20:31:43 +01:00
parent 4e9c473337
commit 288ac9d627

View File

@ -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}"