Changeset 453bef0


Ignore:
Timestamp:
04/26/2006 07:59:19 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:
3ab7be7
Parents:
9ea3d54
Message:

Create SBU and disk usage report by default.

Files:
8 edited

Legend:

Unmodified
Added
Removed
  • CLFS/master.sh

    r9ea3d54 r453bef0  
    785785  done
    786786
     787  # Add SBU-disk_usage report target if required
     788  if [[ "$REPORT" = "1" ]] ; then wrt_report ; fi
     789
    787790}
    788791
     
    861864
    862865  done
     866
     867  # Add SBU-disk_usage report target if required
     868  if [[ "$REPORT" = "1" ]] ; then wrt_report ; fi
    863869
    864870}
  • HLFS/master.sh

    r9ea3d54 r453bef0  
    499499    PREV=$this_script
    500500  done  # for file in chapter07/*
     501
     502  # Add SBU-disk_usage report target if required
     503  if [[ "$REPORT" = "1" ]] ; then wrt_report ; fi
    501504}
    502505
  • LFS/master.sh

    r9ea3d54 r453bef0  
    288288    PREV=${this_script}
    289289  done  # for file in chapter0{7,8,9}/*
     290
     291  # Add SBU-disk_usage report target if required
     292  if [[ "$REPORT" = "1" ]] ; then wrt_report ; fi
    290293}
    291294
  • common/common-functions

    r9ea3d54 r453bef0  
    388388EOF
    389389) >> $MKFILE.tmp
     390}
     391
     392
     393#----------------------------------#
     394wrt_report() {         #
     395#----------------------------------#
     396(
     397cat << EOF
     398
     399create-sbu_du-report:  $PREV
     400        @\$(call echo_message, Building)
     401        @./create-sbu_du-report.sh logs $VERSION $TEST
     402        @\$(call echo_report,$VERSION-SBU_DU-$(date --iso-8601).report)
     403        @touch  \$@
     404EOF
     405) >> $MKFILE.tmp
     406
     407chapter789="$chapter789 create-sbu_du-report"
    390408}
    391409
  • common/config

    r9ea3d54 r453bef0  
    3636#      (in CLFS, alias to 2)
    3737TEST=1
     38
     39# Create SBU and disk usage report  0(no)/1(yes)
     40# NOTE: requires to have bc installed on the host
     41REPORT=1
    3842
    3943#--- Run the stripping phases  0(no)/1(yes)
  • common/func_validate_configs.sh

    r9ea3d54 r453bef0  
    8484
    8585  # First internal variables, then the ones that change the book's flavour, and lastly system configuration variables
    86   local -r blfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE HPKG          DEPEND               TEST"
    87   local -r hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE HPKG RUNMAKE MODEL GRSECURITY_HOST TEST STRIP FSTAB             CONFIG KEYMAP         PAGE TIMEZONE LANG LC_ALL"
    88   local -r clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE HPKG RUNMAKE METHOD  ARCH  TARGET  TEST STRIP FSTAB BOOT_CONFIG CONFIG KEYMAP VIMLANG PAGE TIMEZONE LANG"
    89   local -r  lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE HPKG RUNMAKE                       TEST STRIP FSTAB             CONFIG        VIMLANG PAGE TIMEZONE LANG"
     86  local -r blfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE HPKG         DEPEND                TEST"
     87  local -r hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE HPKG RUNMAKE MODEL GRSECURITY_HOST TEST REPORT STRIP FSTAB             CONFIG KEYMAP         PAGE TIMEZONE LANG LC_ALL"
     88  local -r clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE HPKG RUNMAKE METHOD  ARCH  TARGET  TEST REPORT STRIP FSTAB BOOT_CONFIG CONFIG KEYMAP VIMLANG PAGE TIMEZONE LANG"
     89  local -r  lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE HPKG RUNMAKE                       TEST REPORT STRIP FSTAB             CONFIG        VIMLANG PAGE TIMEZONE LANG"
    9090
    9191  local -r ERROR_MSG_pt1='The variable \"${L_arrow}${config_param}${R_arrow}\" value ${L_arrow}${BOLD}${!config_param}${R_arrow} is invalid,'
     
    132132        RUNMAKE)   validation_str="x0x x1x";          validate_str; continue ;;
    133133        TEST)      validation_str="x0x x1x x2x x3x";  validate_str; continue ;;
     134        REPORT)    validation_str="x0x x1x";          validate_str;
     135            if [[ "${!config_param}" = "1" ]] && [[ `type -p bc` ]]; then
     136              continue
     137            else
     138              echo -e "  ${BOLD}The bc binary was not found${OFF}"
     139              echo -e "  The SBU and disk usage report creation will be skiped"
     140              REPORT=0
     141              continue
     142            fi ;;
    134143        STRIP)     validation_str="x0x x1x";          validate_str; continue ;;
    135144        VIMLANG)   validation_str="x0x x1x";          validate_str; continue ;;
  • common/makefile-functions

    r9ea3d54 r453bef0  
    2929  @cd $(SRC) && \
    3030  tar -xvf `ls -t $(1) | head -n1` > /tmp/unpacked
     31endef
     32
     33define echo_report
     34  @echo
     35  @echo $(BOLD) The report file $(BLUE)$(1)$(BOLD) has been created
     36  @echo
     37  @echo ${WHITE}Please send the $(BOLD)$(MOUNT_PT)/jhalfs/$(1)$(WHITE)
     38  @echo file to $(BOLD)manuel@linuxfromscratch.org$(WHITE)
     39  @echo
     40  @echo That will help us to keep more accurate SBU and
     41  @echo disk usage values into the book. Thanks.
    3142endef
    3243
  • master.sh

    r9ea3d54 r453bef0  
    461461    popd 1> /dev/null
    462462  fi
     463  [[ "$REPORT" = "1" ]] && cp $COMMON_DIR/create-sbu_du-report.sh  $JHALFSDIR/
    463464  sed 's,FAKEDIR,'$BOOK',' $PACKAGE_DIR/$XSL > $JHALFSDIR/${XSL}
    464465  export XSL=$JHALFSDIR/${XSL}
Note: See TracChangeset for help on using the changeset viewer.