tools/extractConfig.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu May 17 16:22:51 2007 +0000 (2007-05-17)
changeset 96 aa1a9fbd6eb8
child 197 9383bf4a2e2e
permissions -rwxr-xr-x
Debug facilities:
- add a framework to easily add new ones
- add gdb as a first debug facility
- add patches for gdb
After the kernel checked its installed headers, clean up the mess of .checked.* files.
Reorder scripts/crosstool.sh:
- dump the configuration early
- renice early
- get info about build system early, when setting up the environment
- when in cross or native, the host tools are those of the build system, and only in this case
- elapsed time calculations moved to scripts/functions
Remove handling of the color: it's gone once and for all.
Update tools/addToolVersion.sh:
- handle debug facilities
- commonalise some code
- remove dead tools (cygwin, tcc)
Point to my address for bug reports.
yann@45
     1
#!/bin/sh
yann@45
     2
yann@45
     3
# This scripts extracts a crosstool-ng configuration from the log file
yann@45
     4
# of a toolchain build with crosstool-ng.
yann@45
     5
yann@45
     6
# Usage: $0 <logfile>
yann@45
     7
yann@45
     8
cat "$1" |awk '
yann@45
     9
BEGIN {
yann@45
    10
  dump = 0;
yann@45
    11
}
yann@45
    12
yann@45
    13
$0~/Dumping crosstool-NG configuration: done in.+s$/ {
yann@45
    14
  dump = 0;
yann@45
    15
}
yann@45
    16
yann@45
    17
dump == 1 { $1 = "" }
yann@45
    18
dump == 1
yann@45
    19
yann@45
    20
$0~/Dumping crosstool-NG configuration$/ {
yann@45
    21
  dump = 1;
yann@45
    22
}
yann@45
    23
' |cut -d ' ' -f 2-