Changeset d14903f for common


Ignore:
Timestamp:
09/02/2006 03:04:03 AM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
experimental
Children:
1ba5024
Parents:
b179a81
Message:

First commit of CLFS changes to new Makefile scheme.. work still to be done on optimize function and ICA/farce tools

Location:
common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    rb179a81 rd14903f  
    103103#------------------------------------------------------#
    104104
     105#----------------------------------#
     106ROOT_RunAsRoot() {                 #
     107#----------------------------------#
     108  local file=$1
     109(
     110cat << EOF
     111        @( time { source envars && \$(CMDSDIR)/$file >>logs/$this_script 2>&1 ; } ) 2>>logs/$this_script && \\
     112        \$(PRT_DU_CR) >>logs/$this_script
     113EOF
     114) >> $MKFILE.tmp
     115}
     116
     117#----------------------------------#
     118ROOT_Unpack() {                    #  An alias, for clairity
     119#----------------------------------#
     120  local FILE=$1
     121  local optSAVE_PREVIOUS=$2
     122
     123  if [[ "${optSAVE_PREVIOUS}" != "1" ]]; then
     124(
     125cat << EOF
     126        @\$(call remove_existing_dirs,$FILE)
     127EOF
     128) >> $MKFILE.tmp
     129  fi
     130
     131(
     132cat << EOF
     133        @\$(call unpack,$FILE)
     134        @\$(call get_pkg_root_LUSER)
     135EOF
     136) >> $MKFILE.tmp
     137}
     138
     139#------------------------------------------------------#
     140#------------------------------------------------------#
    105141
    106142#----------------------------------#
  • common/makefile-functions

    rb179a81 rd14903f  
    1414REVERSE = "[7m"
    1515
     16
     17define echo_PHASE
     18  @clear
     19  @echo $(BOLD)--------------------------------------------------------------------------------
     20  @echo Executing $(BLUE)$(1)$(WHITE) scripts
     21  @echo $(BOLD)--------------------------------------------------------------------------------
     22  #echo $(WHITE)
     23endef
    1624
    1725define echo_SU_request
Note: See TracChangeset for help on using the changeset viewer.