Ignore:
Timestamp:
04/28/2007 03:24:20 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
38d2de6
Parents:
3834b6e
Message:

LFS: Added support for installed files logs.
Should be ported to other books when verified that works as expected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_wrt_Makefile

    r3834b6e r93346ee  
    2929SRCSDIR        = \$(BASEDIR)/sources
    3030CMDSDIR        = \$(BASEDIR)/\$(SCRIPT_ROOT)/$PROGNAME-commands
    31 LOGDIR         = \$(BASEDIR)/\$(SCRIPT_ROOT)/logs
    32 TESTLOGDIR     = \$(BASEDIR)/\$(SCRIPT_ROOT)/test-logs
     31LOGDIR         = \$(BASEDIR)/\$(SCRIPT_ROOT)/$LOGDIRBASE
     32TESTLOGDIR     = \$(BASEDIR)/\$(SCRIPT_ROOT)/$TESTLOGDIRBASE
    3333
    3434crCMDSDIR      = /\$(SCRIPT_ROOT)/$PROGNAME-commands
    35 crLOGDIR       = /\$(SCRIPT_ROOT)/logs
    36 crTESTLOGDIR   = /\$(SCRIPT_ROOT)/test-logs
     35crLOGDIR       = /\$(SCRIPT_ROOT)/$LOGDIRBASE
     36crTESTLOGDIR   = /\$(SCRIPT_ROOT)/$TESTLOGDIRBASE
     37crFILELOGDIR   = /\$(SCRIPT_ROOT)/$FILELOGDIRBASE
    3738
    3839SU_LUSER       = su - \$(LUSER) -c
     
    290291
    291292
     293#==== INSTALLED FILES LOGS ====
     294
     295#----------------------------------#
     296CHROOT_wrt_TouchTimestamp() {      #
     297#----------------------------------#
     298  local name=$1
     299(
     300cat << EOF
     301        @\$(call touch_timestamp)
     302EOF
     303) >> $MKFILE.tmp
     304}
     305
     306#----------------------------------#
     307CHROOT_wrt_LogNewFiles() {         #
     308#----------------------------------#
     309  local name=$1
     310(
     311cat << EOF
     312        @\$(call log_new_files,$name)
     313EOF
     314) >> $MKFILE.tmp
     315}
     316
     317#=======================
     318
     319
    292320#==== RM BUILD DIRS ====
    293321
Note: See TracChangeset for help on using the changeset viewer.