crosstool-ng/tools/ct-ng.extract-config

24 lines
367 B
Plaintext
Raw Normal View History

2007-04-21 17:31:51 +00:00
#!/bin/sh
# This scripts extracts a crosstool-NG configuration from the log file
# of a toolchain build with crosstool-NG.
2007-04-21 17:31:51 +00:00
# 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-