Changeset 453bef0
- Timestamp:
- 04/26/2006 07:59:19 PM (18 years ago)
- Branches:
- 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 3ab7be7
- Parents:
- 9ea3d54
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
CLFS/master.sh
r9ea3d54 r453bef0 785 785 done 786 786 787 # Add SBU-disk_usage report target if required 788 if [[ "$REPORT" = "1" ]] ; then wrt_report ; fi 789 787 790 } 788 791 … … 861 864 862 865 done 866 867 # Add SBU-disk_usage report target if required 868 if [[ "$REPORT" = "1" ]] ; then wrt_report ; fi 863 869 864 870 } -
HLFS/master.sh
r9ea3d54 r453bef0 499 499 PREV=$this_script 500 500 done # for file in chapter07/* 501 502 # Add SBU-disk_usage report target if required 503 if [[ "$REPORT" = "1" ]] ; then wrt_report ; fi 501 504 } 502 505 -
LFS/master.sh
r9ea3d54 r453bef0 288 288 PREV=${this_script} 289 289 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 290 293 } 291 294 -
common/common-functions
r9ea3d54 r453bef0 388 388 EOF 389 389 ) >> $MKFILE.tmp 390 } 391 392 393 #----------------------------------# 394 wrt_report() { # 395 #----------------------------------# 396 ( 397 cat << EOF 398 399 create-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 \$@ 404 EOF 405 ) >> $MKFILE.tmp 406 407 chapter789="$chapter789 create-sbu_du-report" 390 408 } 391 409 -
common/config
r9ea3d54 r453bef0 36 36 # (in CLFS, alias to 2) 37 37 TEST=1 38 39 # Create SBU and disk usage report 0(no)/1(yes) 40 # NOTE: requires to have bc installed on the host 41 REPORT=1 38 42 39 43 #--- Run the stripping phases 0(no)/1(yes) -
common/func_validate_configs.sh
r9ea3d54 r453bef0 84 84 85 85 # 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 DEPENDTEST"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" 90 90 91 91 local -r ERROR_MSG_pt1='The variable \"${L_arrow}${config_param}${R_arrow}\" value ${L_arrow}${BOLD}${!config_param}${R_arrow} is invalid,' … … 132 132 RUNMAKE) validation_str="x0x x1x"; validate_str; continue ;; 133 133 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 ;; 134 143 STRIP) validation_str="x0x x1x"; validate_str; continue ;; 135 144 VIMLANG) validation_str="x0x x1x"; validate_str; continue ;; -
common/makefile-functions
r9ea3d54 r453bef0 29 29 @cd $(SRC) && \ 30 30 tar -xvf `ls -t $(1) | head -n1` > /tmp/unpacked 31 endef 32 33 define 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. 31 42 endef 32 43 -
master.sh
r9ea3d54 r453bef0 461 461 popd 1> /dev/null 462 462 fi 463 [[ "$REPORT" = "1" ]] && cp $COMMON_DIR/create-sbu_du-report.sh $JHALFSDIR/ 463 464 sed 's,FAKEDIR,'$BOOK',' $PACKAGE_DIR/$XSL > $JHALFSDIR/${XSL} 464 465 export XSL=$JHALFSDIR/${XSL}
Note:
See TracChangeset
for help on using the changeset viewer.