crosstool-ng/tools/extract-config.sh
Yann E. MORIN" 72be420406 Fix extracting the configuration from a build log.
/trunk/tools/extract-config.sh |    2     1     1     0 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2008-08-25 21:41:52 +00:00

24 lines
360 B
Bash
Executable File

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