# HG changeset patch # User "Yann E. MORIN" # Date 1354735903 -3600 # Node ID 863723936e242a8ef9aa72b673ef425cccd4b35e # Parent 36aa2ae92c29e5fcb21e4c55089476c1c1e1f134 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 Signed-off-by: "Yann E. MORIN" diff -r 36aa2ae92c29 -r 863723936e24 scripts/xldd.in --- a/scripts/xldd.in Sun Nov 25 18:22:38 2012 +0100 +++ b/scripts/xldd.in Wed Dec 05 20:31:43 2012 +0100 @@ -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}"