- Timestamp:
- 09/02/2006 03:04:03 AM (18 years ago)
- Branches:
- experimental
- Children:
- 1ba5024
- Parents:
- b179a81
- Location:
- common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
common/common-functions
rb179a81 rd14903f 103 103 #------------------------------------------------------# 104 104 105 #----------------------------------# 106 ROOT_RunAsRoot() { # 107 #----------------------------------# 108 local file=$1 109 ( 110 cat << EOF 111 @( time { source envars && \$(CMDSDIR)/$file >>logs/$this_script 2>&1 ; } ) 2>>logs/$this_script && \\ 112 \$(PRT_DU_CR) >>logs/$this_script 113 EOF 114 ) >> $MKFILE.tmp 115 } 116 117 #----------------------------------# 118 ROOT_Unpack() { # An alias, for clairity 119 #----------------------------------# 120 local FILE=$1 121 local optSAVE_PREVIOUS=$2 122 123 if [[ "${optSAVE_PREVIOUS}" != "1" ]]; then 124 ( 125 cat << EOF 126 @\$(call remove_existing_dirs,$FILE) 127 EOF 128 ) >> $MKFILE.tmp 129 fi 130 131 ( 132 cat << EOF 133 @\$(call unpack,$FILE) 134 @\$(call get_pkg_root_LUSER) 135 EOF 136 ) >> $MKFILE.tmp 137 } 138 139 #------------------------------------------------------# 140 #------------------------------------------------------# 105 141 106 142 #----------------------------------# -
common/makefile-functions
rb179a81 rd14903f 14 14 REVERSE = "[7m" 15 15 16 17 define echo_PHASE 18 @clear 19 @echo $(BOLD)-------------------------------------------------------------------------------- 20 @echo Executing $(BLUE)$(1)$(WHITE) scripts 21 @echo $(BOLD)-------------------------------------------------------------------------------- 22 #echo $(WHITE) 23 endef 16 24 17 25 define echo_SU_request
Note:
See TracChangeset
for help on using the changeset viewer.