diff options
Diffstat (limited to 'tools/ct-ng.extract-config')
-rwxr-xr-x | tools/ct-ng.extract-config | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/ct-ng.extract-config b/tools/ct-ng.extract-config new file mode 100755 index 0000000..8221d86 --- /dev/null +++ b/tools/ct-ng.extract-config @@ -0,0 +1,23 @@ +#!/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- |