# HG changeset patch # User "Yann E. MORIN" # Date 1313707925 -7200 # Node ID 22e779b0a4ed9532bd0267fa832b0d4fa2a5e6f7 # Parent a9df2a5ed447e264b1158a85ec1db3abbddba994 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" (transplanted from 814ea73df7e0fab3db1cbe7623932714359c732b) diff -r a9df2a5ed447 -r 22e779b0a4ed scripts/toolchain-config.in --- a/scripts/toolchain-config.in Sat Aug 13 00:05:51 2011 +0200 +++ b/scripts/toolchain-config.in Fri Aug 19 00:52:05 2011 +0200 @@ -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 ###