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>
This commit is contained in:
Yann E. MORIN" 2011-08-19 00:52:05 +02:00
parent abae6732e8
commit 3374dbf5eb

View File

@ -1,8 +1,4 @@
#!/bin/sh #!/bin/sh
SKIP_ME="### CT_NG SKIP ME ###" tail -n+5 "${0}" |bzcat
skip_me=$(($(cat "${0}" |@@grep@@ --binary-files=text -o -b -E "^${SKIP_ME}$" |cut -d : -f 1)+${#SKIP_ME}+1))
dd if="${0}" bs=${skip_me} skip=1 2>/dev/null |bzcat
exit 0 exit 0
### CT_NG SKIP ME ###