2007-09-12 17:35:07 +00:00
|
|
|
#!/bin/bash
|
2007-04-21 17:31:51 +00:00
|
|
|
|
2007-07-02 19:40:54 +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
|
|
|
|
2007-07-17 21:44:33 +00:00
|
|
|
# Usage: cat <logfile> |$0
|
2007-04-21 17:31:51 +00:00
|
|
|
|
2007-07-17 21:44:33 +00:00
|
|
|
awk '
|
2007-04-21 17:31:51 +00:00
|
|
|
BEGIN {
|
|
|
|
dump = 0;
|
|
|
|
}
|
|
|
|
|
2008-08-25 21:41:52 +00:00
|
|
|
$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-
|