From ede3c76fc2b45dff9f67c2670848a1bb7b0e56dd Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 8 Jul 2007 22:28:47 +0000 Subject: 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. diff --git a/Makefile.in b/Makefile.in index 3eeef51..ee3ffd8 100644 --- a/Makefile.in +++ b/Makefile.in @@ -67,6 +67,7 @@ clean-doc: install-bin: $(BINDIR) @install -m 755 ct-ng $(BINDIR)/ct-ng + @ln -s $(LIBDIR)/tools/ct-ng.extract-config $(BINDIR)/ct-ng.extract-config install-lib: $(LIBDIR) install-lib-main install-lib-samples @@ -74,6 +75,7 @@ install-lib-main: $(LIBDIR) @for src_dir in config kconfig patches scripts tools; do \ tar cf - --exclude=.svn $${src_dir} |(cd $(LIBDIR); tar xf -); \ done + @rm -f $(LIBDIR)/tools/addToolVersion.sh @for src_file in Makefile.steps version; do \ install -m 644 $${src_file} $(LIBDIR)/$${src_file}; \ done 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 + +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- diff --git a/tools/extractConfig.sh b/tools/extractConfig.sh deleted file mode 100755 index 8221d86..0000000 --- a/tools/extractConfig.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -# This scripts extracts a crosstool-NG configuration from the log file -# of a toolchain build with crosstool-NG. - -# Usage: $0 - -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- -- cgit v0.10.2-6-g49f6