Changeset f546320 for common


Ignore:
Timestamp:
06/03/2007 09:06:13 AM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
05760bc
Parents:
350625a
Message:

Ported INSTALL_LOG support to all books.

Location:
common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_validate_configs.sh

    r350625a rf546320  
    2626                            SERVER GETKERNEL RUNMAKE"
    2727  local -r    BUILD_chroot="TEST BOMB_TEST STRIP"
    28   local -r    BUILD_common="FSTAB CONFIG TIMEZONE PAGE LANG"
     28  local -r    BUILD_common="FSTAB CONFIG TIMEZONE PAGE LANG INSTALL_LOG"
    2929  local -r ADVANCED_chroot="COMPARE RUN_ICA RUN_FARCE ITERATIONS OPTIMIZE"
    3030  local -r ADVANCED_common="REPORT REBUILD_MAKEFILE"
     
    3838
    3939  # Build Settings by book
    40   local -r   LFS_build="$BUILD_chroot $BUILD_common VIMLANG INSTALL_LOG"
    41   local -r  HLFS_build="$BUILD_chroot $BUILD_common LC_ALL"
    42   local -r  CLFS_build="$BUILD_chroot $BUILD_common VIMLANG"
    43   local -r CLFS2_build="STRIP         $BUILD_common VIMLANG"
    44   local -r CLFS3_build="              $BUILD_common"
     40  local -r   LFS_build="$BUILD_chroot VIMLANG $BUILD_common"
     41  local -r  HLFS_build="$BUILD_chroot         $BUILD_common LC_ALL"
     42  local -r  CLFS_build="$BUILD_chroot VIMLANG $BUILD_common"
     43  local -r CLFS2_build="STRIP         VIMLANG $BUILD_common"
     44  local -r CLFS3_build="                      $BUILD_common"
    4545
    4646  # Full list of books settings
  • common/libs/func_wrt_Makefile

    r350625a rf546320  
    311311
    312312#----------------------------------#
     313LUSER_wrt_TouchTimestamp() {       #
     314#----------------------------------#
     315(
     316cat << EOF
     317        @\$(call touch_timestamp_LUSER)
     318EOF
     319) >> $MKFILE.tmp
     320}
     321
     322#----------------------------------#
    313323CHROOT_wrt_TouchTimestamp() {      #
    314324#----------------------------------#
     
    321331
    322332#----------------------------------#
     333LUSER_wrt_LogNewFiles() {          #
     334#----------------------------------#
     335  local name=$1
     336(
     337cat << EOF
     338        @\$(call log_new_files_LUSER,$name)
     339EOF
     340) >> $MKFILE.tmp
     341}
     342
     343#----------------------------------#
    323344CHROOT_wrt_LogNewFiles() {         #
    324345#----------------------------------#
  • common/makefile-functions

    r350625a rf546320  
    116116endef
    117117
     118define touch_timestamp_LUSER
     119  @touch $(SRCDIR)/timestamp-marker && sleep 1
     120endef
     121
    118122define log_new_files
    119123  @find / -xdev ! -path "/$(SCRIPT_ROOT)/*" ! -path "/tmp/*" ! -path "$(SRC)/*" \
    120124  -newer $(SRC)/timestamp-marker -not -type d \
    121125  -printf "%p\t%s\t%u:%g\t%m\t%l\n" | sort > $(crFILELOGDIR)/$(1)
     126endef
     127
     128define log_new_files_LUSER
     129  @find $(BASEDIR) -xdev ! -path "$(BASEDIR)/$(SCRIPT_ROOT)/*" ! -path "$(BASEDIR)/tmp/*" ! -path "$(SRCDIR)/*" \
     130  -newer $(SRCDIR)/timestamp-marker -not -type d \
     131  -printf "%p\t%s\t%u:%g\t%m\t%l\n" | sort > $(BASEDIR)$(crFILELOGDIR)/$(1)
    122132endef
    123133
Note: See TracChangeset for help on using the changeset viewer.