Fix the install procedure:
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jul 08 22:28:47 2007 +0000 (2007-07-08)
changeset 223918b55e0e4a1
parent 222 7c5117eade60
child 224 5d14c00467ab
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.
Makefile.in
tools/ct-ng.extract-config
tools/extractConfig.sh
     1.1 --- a/Makefile.in	Sun Jul 08 22:26:37 2007 +0000
     1.2 +++ b/Makefile.in	Sun Jul 08 22:28:47 2007 +0000
     1.3 @@ -67,6 +67,7 @@
     1.4  
     1.5  install-bin: $(BINDIR)
     1.6  	@install -m 755 ct-ng $(BINDIR)/ct-ng
     1.7 +	@ln -s $(LIBDIR)/tools/ct-ng.extract-config $(BINDIR)/ct-ng.extract-config
     1.8  
     1.9  install-lib: $(LIBDIR) install-lib-main install-lib-samples
    1.10  
    1.11 @@ -74,6 +75,7 @@
    1.12  	@for src_dir in config kconfig patches scripts tools; do            \
    1.13  	     tar cf - --exclude=.svn $${src_dir} |(cd $(LIBDIR); tar xf -); \
    1.14  	 done
    1.15 +	@rm -f $(LIBDIR)/tools/addToolVersion.sh
    1.16  	@for src_file in Makefile.steps version; do                 \
    1.17  	     install -m 644 $${src_file} $(LIBDIR)/$${src_file};    \
    1.18  	 done
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/tools/ct-ng.extract-config	Sun Jul 08 22:28:47 2007 +0000
     2.3 @@ -0,0 +1,23 @@
     2.4 +#!/bin/sh
     2.5 +
     2.6 +# This scripts extracts a crosstool-NG configuration from the log file
     2.7 +# of a toolchain build with crosstool-NG.
     2.8 +
     2.9 +# Usage: $0 <logfile>
    2.10 +
    2.11 +cat "$1" |awk '
    2.12 +BEGIN {
    2.13 +  dump = 0;
    2.14 +}
    2.15 +
    2.16 +$0~/Dumping crosstool-NG configuration: done in.+s$/ {
    2.17 +  dump = 0;
    2.18 +}
    2.19 +
    2.20 +dump == 1 { $1 = "" }
    2.21 +dump == 1
    2.22 +
    2.23 +$0~/Dumping crosstool-NG configuration$/ {
    2.24 +  dump = 1;
    2.25 +}
    2.26 +' |cut -d ' ' -f 2-
     3.1 --- a/tools/extractConfig.sh	Sun Jul 08 22:26:37 2007 +0000
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,23 +0,0 @@
     3.4 -#!/bin/sh
     3.5 -
     3.6 -# This scripts extracts a crosstool-NG configuration from the log file
     3.7 -# of a toolchain build with crosstool-NG.
     3.8 -
     3.9 -# Usage: $0 <logfile>
    3.10 -
    3.11 -cat "$1" |awk '
    3.12 -BEGIN {
    3.13 -  dump = 0;
    3.14 -}
    3.15 -
    3.16 -$0~/Dumping crosstool-NG configuration: done in.+s$/ {
    3.17 -  dump = 0;
    3.18 -}
    3.19 -
    3.20 -dump == 1 { $1 = "" }
    3.21 -dump == 1
    3.22 -
    3.23 -$0~/Dumping crosstool-NG configuration$/ {
    3.24 -  dump = 1;
    3.25 -}
    3.26 -' |cut -d ' ' -f 2-