mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-26 07:51:06 +00:00
2fe3a9dbbb
Don't hardcode ncurses include and link flags.
24 lines
364 B
Bash
Executable File
24 lines
364 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.+s$/ {
|
|
dump = 0;
|
|
}
|
|
|
|
dump == 1 { $1 = "" }
|
|
dump == 1
|
|
|
|
$0~/Dumping crosstool-NG configuration$/ {
|
|
dump = 1;
|
|
}
|
|
' |cut -d ' ' -f 2-
|