Changeset 9bbb9c8


Ignore:
Timestamp:
07/04/2017 12:19:46 PM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
d0e13dd
Parents:
322226d
Message:

Package management: compute times and sizes without packing times and sizes

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Config.in

    r322226d r9bbb9c8  
    10711071
    10721072    config    REPORT
    1073         depends !PKGMNGT
    10741073        bool "Create SBU and disk usage report"
    10751074        default y
  • LFS/lfs.xsl

    r322226d r9bbb9c8  
    260260          </xsl:if>
    261261          <xsl:text>'
     262PREV_SEC=${SECONDS}
    262263packInstall
     264SECONDS=${PREV_SEC}
    263265</xsl:text>
    264266        </xsl:when>
     
    298300  [[ -z $(ls $dir) ]] &amp;&amp; rmdir -v $dir
    299301done
     302PREV_SEC=${SECONDS}
    300303packInstall
     304SECONDS=${PREV_SEC}
    301305rm -rf $PKG_DEST
    302306</xsl:text>
     
    372376           mode="pkgmngt"/>
    373377        <xsl:if test="$dirname = 'chapter06'">
    374           <xsl:text>packInstall
     378          <xsl:text>PREV_SEC=${SECONDS}
     379packInstall
     380SECONDS=${PREV_SEC}
    375381rm -rf "$PKG_DEST"
    376382</xsl:text>
     
    574580            <xsl:copy-of select="substring-after(string(),'ZONEINFO=')"/>
    575581            <xsl:text>
     582PREV_SEC=${SECONDS}
    576583packInstall
     584SECONDS=${PREV_SEC}
    577585rm -rf $PKG_DEST
    578586</xsl:text>
     
    585593            <xsl:copy-of select="substring-after(string(),'ZONEINFO=')"/>
    586594            <xsl:text>'
     595PREV_SEC=${SECONDS}
    587596packInstall
     597SECONDS=${PREV_SEC}
    588598</xsl:text>
    589599          </xsl:otherwise>
  • common/create-sbu_du-report.sh

    r322226d r9bbb9c8  
    122122# root dir, excluding the jhalfs directory (and lost+found). We assume
    123123# that the rootdir is $LOGSDIR/../..
    124 DU1=`du -skx --exclude=jhalfs --exclude=lost+found $LOGSDIR/../.. | cut -f1`
     124DU1=`du -skx --exclude=jhalfs --exclude=lost+found --exclude /var/lib $LOGSDIR/../.. | cut -f1`
    125125DU1MB=`perl -e 'printf "%.3f" , ('$DU1' / '1024')';`
    126126INSTALL=`perl -e 'print ('$DU1' - '$DU1PREV')';`
  • common/libs/func_wrt_Makefile

    r322226d r9bbb9c8  
    4040LUSER_HOME     = \$(LHOME)/\$(LUSER)
    4141PRT_DU         = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found \$(MOUNT_PT) \`\n"
    42 PRT_DU_CR      = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found / \`\n"
     42PRT_DU_CR      = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found --exclude /var/lib / \`\n"
    4343
    4444ADD_REPORT       = $REPORT
Note: See TracChangeset for help on using the changeset viewer.