diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-04-21 17:31:51 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-04-21 17:31:51 (GMT) |
commit | c1efc08c094baf0131555320d779b2ad0ca2f390 (patch) | |
tree | c3c42b02c7f30f1e744b18464ba93846f2eef85f /tools/extractConfig.sh | |
parent | 2cdae6ce0274dc12f918854c87016d6cd1591501 (diff) |
Merge first shot from the MIPS branch.
Diffstat (limited to 'tools/extractConfig.sh')
-rwxr-xr-x | tools/extractConfig.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/extractConfig.sh b/tools/extractConfig.sh new file mode 100755 index 0000000..408f69e --- /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 <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- |