From c1efc08c094baf0131555320d779b2ad0ca2f390 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sat, 21 Apr 2007 17:31:51 +0000 Subject: Merge first shot from the MIPS branch. --- tools/extractConfig.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 tools/extractConfig.sh (limited to 'tools') diff --git a/tools/extractConfig.sh b/tools/extractConfig.sh new file mode 100755 index 00000000..408f69ec --- /dev/null +++ b/tools/extractConfig.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: $0 + +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- -- cgit v1.2.3