Changeset 4edf3b7 for common


Ignore:
Timestamp:
05/04/2006 06:26:42 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
e2fa2bd
Parents:
7a519f3
Message:

Changed a hack by proper code.

Location:
common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    r7a519f3 r4edf3b7  
    199199
    200200
    201 
    202 
    203201#----------------------------------#
    204202wrt_target() {                     # Create target and initialize log file
     
    206204  local i=$1
    207205  local PREV=$2
     206  case $i in
     207    iteration* ) local LOGFILE=$this_script.log ;;
     208             * ) local LOGFILE=$this_script ;;
     209  esac
    208210(
    209211cat << EOF
     
    211213$i:  $PREV
    212214        @\$(call echo_message, Building)
    213         @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=jhalfs \$(MOUNT_PT)\`\n" >logs/$this_script
     215        @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=jhalfs \$(MOUNT_PT)\`\n" >logs/$LOGFILE
    214216EOF
    215217) >> $MKFILE.tmp
  • common/func_compare.sh

    r7a519f3 r4edf3b7  
    109109    cat << EOF
    110110        @pushd logs 1> /dev/null && \\
    111         rm $ITERATION && \\
    112111        mkdir $ITERATION && \\
    113112        mv ${LOGS} $ITERATION && \\
Note: See TracChangeset for help on using the changeset viewer.