mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 05:43:09 +00:00
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:
parent
abae6732e8
commit
3374dbf5eb
@ -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 ###
|
|
||||||
|
Loading…
Reference in New Issue
Block a user