crosstool-ng/tools/extractConfig.sh
Yann E. MORIN" 9265403b8b Get rid of eclipse fiels once and for all.
Homogenise the references to crosstool-NG:
  - the project is named "crosstool-NG"
  - the front-end is named "ct-ng"
  - don't use shortcuts (such as "ct-ng" to stand for "crosstool-NG")
Default action is to print help.
Don't speak of make rules when dumping help, just speak of actions.
2007-07-02 19:40:54 +00:00

24 lines
367 B
Bash
Executable File

#!/bin/sh
# This scripts extracts a crosstool-NG configuration from the log file
# of a toolchain build with crosstool-NG.
# Usage: $0 <logfile>
cat "$1" |awk '
BEGIN {
dump = 0;
}
$0~/Dumping crosstool-NG configuration: done in.+s$/ {
dump = 0;
}
dump == 1 { $1 = "" }
dump == 1
$0~/Dumping crosstool-NG configuration$/ {
dump = 1;
}
' |cut -d ' ' -f 2-