scripts: simplify and fix the toolchain config script 1.12
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Aug 19 00:52:05 2011 +0200 (2011-08-19)
branch1.12
changeset 263322e779b0a4ed
parent 2632 a9df2a5ed447
child 2634 e29a762bbadf
scripts: simplify and fix the toolchain config script

The script that is installed, and which sole purpose is to dump
the .config that was used to build the toolchain, is pure insanity.

Let's make it much, much more simpler...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 814ea73df7e0fab3db1cbe7623932714359c732b)
scripts/toolchain-config.in
     1.1 --- a/scripts/toolchain-config.in	Sat Aug 13 00:05:51 2011 +0200
     1.2 +++ b/scripts/toolchain-config.in	Fri Aug 19 00:52:05 2011 +0200
     1.3 @@ -1,8 +1,4 @@
     1.4  #!/bin/sh
     1.5  
     1.6 -SKIP_ME="### CT_NG SKIP ME ###"
     1.7 -skip_me=$(($(cat "${0}" |@@grep@@ --binary-files=text -o -b -E "^${SKIP_ME}$" |cut -d : -f 1)+${#SKIP_ME}+1))
     1.8 -dd if="${0}" bs=${skip_me} skip=1 2>/dev/null |bzcat
     1.9 +tail -n+5 "${0}" |bzcat
    1.10  exit 0
    1.11 -
    1.12 -### CT_NG SKIP ME ###