tools/ct-ng.extract-config
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jul 08 22:28:47 2007 +0000 (2007-07-08)
changeset 223 918b55e0e4a1
permissions -rwxr-xr-x
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.
yann@223
     1
#!/bin/sh
yann@223
     2
yann@223
     3
# This scripts extracts a crosstool-NG configuration from the log file
yann@223
     4
# of a toolchain build with crosstool-NG.
yann@223
     5
yann@223
     6
# Usage: $0 <logfile>
yann@223
     7
yann@223
     8
cat "$1" |awk '
yann@223
     9
BEGIN {
yann@223
    10
  dump = 0;
yann@223
    11
}
yann@223
    12
yann@223
    13
$0~/Dumping crosstool-NG configuration: done in.+s$/ {
yann@223
    14
  dump = 0;
yann@223
    15
}
yann@223
    16
yann@223
    17
dump == 1 { $1 = "" }
yann@223
    18
dump == 1
yann@223
    19
yann@223
    20
$0~/Dumping crosstool-NG configuration$/ {
yann@223
    21
  dump = 1;
yann@223
    22
}
yann@223
    23
' |cut -d ' ' -f 2-