summaryrefslogtreecommitdiff
path: root/tools/ct-ng.extract-config
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-07-08 22:28:47 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-07-08 22:28:47 (GMT)
commitede3c76fc2b45dff9f67c2670848a1bb7b0e56dd (patch)
tree52985f14265000ceb37e5868f1eb796e0b0b445f /tools/ct-ng.extract-config
parent2183c6baa5db8abb10190efef2b9ae34a90e3f5c (diff)
Fix the install procedure:
- 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.
Diffstat (limited to 'tools/ct-ng.extract-config')
-rwxr-xr-xtools/ct-ng.extract-config23
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-