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>
Yann E. MORIN" 12 years ago
parent abae6732e8
commit 3374dbf5eb

@ -1,8 +1,4 @@
#!/bin/sh
SKIP_ME="### CT_NG SKIP ME ###"
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
tail -n+5 "${0}" |bzcat
exit 0
### CT_NG SKIP ME ###

Loading…
Cancel
Save