Force CT_WORK_DIR to "${CT_TOP_DIR}/targets" when saving the config as a new sample.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jun 30 11:19:17 2008 +0000 (2008-06-30)
changeset 6321644c63e0109
parent 631 2761b358f9e6
child 633 9193aa9460db
Force CT_WORK_DIR to "${CT_TOP_DIR}/targets" when saving the config as a new sample.

/trunk/Makefile.in | 5 3 2 0 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Makefile.in
     1.1 --- a/Makefile.in	Fri Jun 27 15:08:43 2008 +0000
     1.2 +++ b/Makefile.in	Mon Jun 30 11:19:17 2008 +0000
     1.3 @@ -124,8 +124,9 @@
     1.4  install-lib-samples: $(LIBDIR) install-lib-main
     1.5  	@echo "  INST   'samples/'"
     1.6  	@tar cf - --exclude=.svn samples |(cd "$(LIBDIR)"; tar xf -)
     1.7 -	@for samp_file in "$(LIBDIR)/samples/"*"/crosstool.config"; do              \
     1.8 -	     sed -r -i -e 's,\$$\{CT_TOP_DIR\},\$$\{CT_LIB_DIR\},g;' $${samp_file}; \
     1.9 +	@for samp_file in "$(LIBDIR)/samples/"*"/crosstool.config"; do                          \
    1.10 +	     sed -r -i -e 's,\$$\{CT_TOP_DIR\},\$$\{CT_LIB_DIR\},g;' $${samp_file};             \
    1.11 +	     sed -r -i -e 's,^(CT_WORK_DIR)=.*,\1="\$${CT_TOP_DIR}/targets",;' $${samp_file};   \
    1.12  	 done
    1.13  
    1.14  install-doc: $(DOCDIR)