Ignore:
Timestamp:
09/25/2007 09:34:03 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
c5ae20a
Parents:
5a4f6a7
Message:

Set $TEST_LOG from inside the build scripts.
There is no need now to use the envars file.
Optimize support must be moved to an XSL-based code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_wrt_Makefile

    r5a4f6a7 rf5f857d  
    5959
    6060#----------------------------------#
    61 LUSER_wrt_target() {               # Create target and initialize envars file
     61LUSER_wrt_target() {               # Create target
    6262#----------------------------------#
    6363  local i=$1
     
    6969        @\$(call echo_message, Building)
    7070        @export BASHBIN=\$(SHELL) && \$(SHELL) progress_bar.sh \$@ \$\$PPID &
    71         @rm -f envars && touch envars
    7271EOF
    7372) >> $MKFILE.tmp
     
    8584        @\$(call echo_message, Building)
    8685        @export BASHBIN=\$(SHELL) && \$(SHELL) progress_bar.sh \$@ \$\$PPID &
    87         @rm -f envars && touch envars
    88 EOF
    89 ) >> $MKFILE.tmp
    90 }
    91 
    92 #=======================
    93 
    94 
    95 #===== TESTS LOGS ======
    96 
    97 #----------------------------------#
    98 LUSER_wrt_test_log() {             # Initialize testsuite log file
    99 #----------------------------------#
    100   local TESTLOGFILE=$1
    101 (
    102 cat  << EOF
    103         @echo "export  TEST_LOG=\$(TESTLOGDIR)/$TESTLOGFILE" >> envars && \\
    104         echo "\$(nl_)\`date\`\$(nl_)" > \$(TESTLOGDIR)/\$@
    105 EOF
    106 ) >> $MKFILE.tmp
    107 }
    108 
    109 #----------------------------------#
    110 CHROOT_wrt_test_log() {            #
    111 #----------------------------------#
    112   local TESTLOGFILE=$1
    113 (
    114 cat  << EOF
    115         @echo "export TEST_LOG=\$(crTESTLOGDIR)/$TESTLOGFILE" >> envars && \\
    116         echo "\$(nl_)\`date\`\$(nl_)" > test-logs/\$@
    11786EOF
    11887) >> $MKFILE.tmp
     
    153122(
    154123cat << EOF
    155         @source ~/.bashrc && \$(CMDSDIR)/`dirname $file`/\$@ > logs/\$@ 2>&1
     124        @\$(CMDSDIR)/`dirname $file`/\$@ > logs/\$@ 2>&1
    156125EOF
    157126) >> $MKFILE.tmp
     
    164133(
    165134cat << EOF
    166         @source envars && \$(crCMDSDIR)/`dirname $file`/\$@ > logs/\$@ 2>&1
     135        @\$(crCMDSDIR)/`dirname $file`/\$@ > logs/\$@ 2>&1
    167136EOF
    168137) >> $MKFILE.tmp
Note: See TracChangeset for help on using the changeset viewer.