mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 22:52:23 +00:00
ede3c76fc2
- remove useless script tools/addToolVersion.sh: it is not needed when running crosstool-NG, only for developpers, - create a symlink to the configuration extract script, so that it is in the PATH if ct-ng is.
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-
|