From d5db172ef497472211ba081b70b2c8aad8ccbd89 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 17 Jul 2007 21:44:33 +0000 Subject: Revisit the extract-config way of working: ct-ng is the sole entry point to crosstool-NG, and ct-ng.extrac-config no longer exists. You now have to call "ct-ng extractconfig - -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- diff --git a/tools/extract-config.sh b/tools/extract-config.sh new file mode 100755 index 00000000..b5c77c64 --- /dev/null +++ b/tools/extract-config.sh @@ -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: cat |$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- -- cgit v1.2.3