crosstool-ng/tools/extract-config.sh

24 lines
360 B
Bash
Raw Normal View History

#!/bin/bash
2007-04-21 17:31:51 +00:00
# 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: cat <logfile> |$0
2007-04-21 17:31:51 +00:00
awk '
2007-04-21 17:31:51 +00:00
BEGIN {
dump = 0;
}
$0~/Dumping crosstool-NG configuration: done in/ {
2007-04-21 17:31:51 +00:00
dump = 0;
}
dump == 1 { $1 = "" }
dump == 1
$0~/Dumping crosstool-NG configuration$/ {
dump = 1;
}
' |cut -d ' ' -f 2-