# HG changeset patch # User "Yann E. MORIN" # Date 1290544496 -3600 # Node ID dd7716f9aa1109ab9473d8ba15921eaabe1b459e # Parent 4eb6dc3feef40c738a25074e53df5cb90db380c1 scripts/xldd: fix version string The version string was hard-coded. Now, the version string follows the crosstool-NG version. Signed-off-by: "Yann E. MORIN" (transplanted from e826624966a1672422711f779d98686e03a30b90) diff -r 4eb6dc3feef4 -r dd7716f9aa11 scripts/build/internals.sh --- a/scripts/build/internals.sh Tue Nov 23 21:34:50 2010 +0100 +++ b/scripts/build/internals.sh Tue Nov 23 21:34:56 2010 +0100 @@ -47,7 +47,8 @@ if [ "${CT_LIBC_XLDD}" = "y" ]; then CT_DoLog EXTRA "Installing a cross-ldd helper" - sed -r -e 's|@@CT_TARGET@@|'"${CT_TARGET}"'|g;' \ + sed -r -e 's|@@CT_VERSION@@|'"${CT_VERSION}"'|g;' \ + -e 's|@@CT_TARGET@@|'"${CT_TARGET}"'|g;' \ -e 's|@@CT_install@@|'"${install}"'|g;' \ -e 's|@@CT_bash@@|'"${bash}"'|g;' \ -e 's|@@CT_grep@@|'"${grep}"'|g;' \ diff -r 4eb6dc3feef4 -r dd7716f9aa11 scripts/xldd.in --- a/scripts/xldd.in Tue Nov 23 21:34:50 2010 +0100 +++ b/scripts/xldd.in Tue Nov 23 21:34:56 2010 +0100 @@ -2,6 +2,7 @@ # NON-CONFIGURABLE STUFF! export LC_ALL=C +version="@@CT_VERSION@@" sed="@@CT_sed@@" grep="@@CT_grep@@" my_name="$( basename "${0}" )" @@ -24,7 +25,7 @@ show_version() { # Fake a real ldd, just in case some dumb script would check cat <<_EOF_ -ldd (crosstool-NG) 1.8.0 +ldd (crosstool-NG) ${version} Copyright (C) 2010 "Yann E. MORIN" This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.