mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-22 06:07:49 +00:00
9265403b8b
Homogenise the references to crosstool-NG: - the project is named "crosstool-NG" - the front-end is named "ct-ng" - don't use shortcuts (such as "ct-ng" to stand for "crosstool-NG") Default action is to print help. Don't speak of make rules when dumping help, just speak of actions.
24 lines
367 B
Bash
Executable File
24 lines
367 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This scripts extracts a crosstool-NG configuration from the log file
|
|
# of a toolchain build with crosstool-NG.
|
|
|
|
# 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-
|