Changeset 10c8b78 for common


Ignore:
Timestamp:
12/05/2006 03:25:00 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
2512414
Parents:
6bb080e
Message:

More compare and related fixes.
Test build in progress.

Location:
common
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    r6bb080e r10c8b78  
    5656      # Clean the build directory
    5757      echo -n "Cleaning $BUILDDIR ..."
    58       sudo rm -rf $BUILDDIR/{bin,boot,dev,etc,home,lib,media,mnt,opt,proc,root,sbin,srv,sys,tmp,tools,cross-tools,usr,var}
     58      sudo rm -rf $BUILDDIR/{bin,boot,etc,home,lib,media,mnt,opt,root,sbin,srv,tmp,tools,cross-tools,usr,var}
    5959      echo "done"
    6060      echo -n "Cleaning $JHALFSDIR ..."
  • common/create-sbu_du-report.sh

    r6bb080e r10c8b78  
    2020# If there is iteration logs directories, copy the logs inside iteration-1
    2121# to the top level dir
    22 [[ -d "$LOGSDIR"/iteration-1 ]] && \
    23   cp $LOGSDIR/iteration-1/* $LOGSDIR
     22[[ -d "$LOGSDIR"/build_1 ]] && \
     23  cp $LOGSDIR/build_1/* $LOGSDIR
    2424
    2525# Set the report file
  • common/libs/func_compare.sh

    r6bb080e r10c8b78  
    1414    CHROOT_wrt_target "$ITERATION" "$PREV"
    1515    wrt_compare_work "$ITERATION" "$PREV_IT"
     16    wrt_logs "$N"
    1617    wrt_touch
    1718    PREV_IT=$ITERATION
     
    4748    fi
    4849  fi
    49 
    50   echo -e "\nsystem_build_$RUN: $PREV_IT $system_build" >> $MKFILE.tmp
    5150}
    5251
     
    107106  echo -e "\t@extras/farce --directory $OUTPUT $PREDIR $PREFILE $ITEDIR $ITEFILE >>logs/\$@ 2>&1" >> $MKFILE.tmp
    108107}
     108
     109#----------------------------------#
     110wrt_logs() {                       #
     111#----------------------------------#
     112  local build=build_$1
     113  local file
     114
     115(
     116    cat << EOF
     117        @cd logs && \\
     118        mkdir $build && \\
     119        mv -f ${system_build} $build && \\
     120        if [ ! $build = build_1 ] ; then \\
     121          cd $build && \\
     122          for file in \`ls .\` ; do \\
     123            mv -f \$\$file \`echo \$\$file | sed -e 's,-$build,,'\` ; \\
     124          done ; \\
     125        fi ;
     126        @cd /\$(SCRIPT_ROOT)
     127        @if [ -d test-logs ] ; then \\
     128          cd test-logs && \\
     129          mkdir $build && \\
     130          mv -f ${system_build} $build && \\
     131          if [ ! $build = build_1 ] ; then \\
     132            cd $build && \\
     133            for file in \`ls .\` ; do \\
     134              mv -f \$\$file \`echo \$\$file | sed -e 's,-$build,,'\` ; \\
     135            done ; \\
     136          fi ; \\
     137          cd /\$(SCRIPT_ROOT) ; \\
     138        fi ;
     139EOF
     140) >> $MKFILE.tmp
     141}
  • common/libs/func_wrt_Makefile

    r6bb080e r10c8b78  
    187187cat  << EOF
    188188        @echo "export  TEST_LOG=\$(TESTLOGDIR)/$TESTLOGFILE" >> envars && \\
    189         echo '\$(nl_)\`date\`\$(nl_)' >\$(TESTLOGDIR)/\$@
     189        echo "\$(nl_)\`date\`\$(nl_)" >\$(TESTLOGDIR)/\$@
    190190EOF
    191191) >> $MKFILE.tmp
Note: See TracChangeset for help on using the changeset viewer.