Use tools discovered by ./configure in scripts/toolchain-config.in.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Feb 01 18:51:19 2009 +0000 (2009-02-01)
changeset 11895c20d52c8270
parent 1188 a954ea1de05f
child 1190 15908c920549
Use tools discovered by ./configure in scripts/toolchain-config.in.

/trunk/scripts/crosstool-NG.sh.in | 1 1 0 0 +
/trunk/scripts/toolchain-config.in | 2 1 1 0 +-
2 files changed, 2 insertions(+), 1 deletion(-)
scripts/crosstool-NG.sh.in
scripts/toolchain-config.in
     1.1 --- a/scripts/crosstool-NG.sh.in	Sun Feb 01 18:43:45 2009 +0000
     1.2 +++ b/scripts/crosstool-NG.sh.in	Sun Feb 01 18:51:19 2009 +0000
     1.3 @@ -412,6 +412,7 @@
     1.4  
     1.5      CT_DoLog EXTRA "Installing user-supplied crosstool-NG configuration"
     1.6      CT_DoExecLog DEBUG install -m 0755 "${CT_LIB_DIR}/scripts/toolchain-config.in" "${CT_PREFIX_DIR}/bin/${CT_TARGET}-ct-ng.config"
     1.7 +    CT_DoExecLog DEBUG sed -r -i -e 's,@@grep@@,"'"${grep}"'",;' "${CT_PREFIX_DIR}/bin/${CT_TARGET}-ct-ng.config"
     1.8      bzip2 -c -9 .config >>"${CT_PREFIX_DIR}/bin/${CT_TARGET}-ct-ng.config"
     1.9  
    1.10      CT_DoStep EXTRA "Dumping internal crosstool-NG configuration"
     2.1 --- a/scripts/toolchain-config.in	Sun Feb 01 18:43:45 2009 +0000
     2.2 +++ b/scripts/toolchain-config.in	Sun Feb 01 18:51:19 2009 +0000
     2.3 @@ -1,7 +1,7 @@
     2.4  #!/bin/sh
     2.5  
     2.6  SKIP_ME="### CT_NG SKIP ME ###"
     2.7 -skip_me=$(($(cat "${0}" |grep --binary-files=text -o -b -E "^${SKIP_ME}$" |cut -d : -f 1)+${#SKIP_ME}+1))
     2.8 +skip_me=$(($(cat "${0}" |@@grep@@ --binary-files=text -o -b -E "^${SKIP_ME}$" |cut -d : -f 1)+${#SKIP_ME}+1))
     2.9  dd if="${0}" bs=${skip_me} skip=1 2>/dev/null |bzcat
    2.10  exit 0
    2.11