Changeset 1f81129
- Timestamp:
- 11/12/2006 12:10:25 PM (17 years ago)
- Branches:
- 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 1838bc7
- Parents:
- ca6b261
- Location:
- common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
common/libs/func_custom_pkgs
rca6b261 r1f81129 70 70 @./progress_bar.sh \$@ \$\$PPID & 71 71 @\$(call remove_existing_dirs2,${PKG_FILE}) 72 @\$(call unpack 3,${PKG_FILE})72 @\$(call unpack2,${PKG_FILE}) 73 73 @\$(call get_pkg_root2) 74 74 @( time { source envars && /\$(SCRIPT_ROOT)/custom-commands/scripts/${THIS_SCRIPT} >>logs/${THIS_SCRIPT} 2>&1 ; } ) 2>>logs/${THIS_SCRIPT} -
common/libs/func_wrt_Makefile
rca6b261 r1f81129 163 163 ( 164 164 cat << EOF 165 @\$(call unpack 3,$FILE)165 @\$(call unpack2,$FILE) 166 166 @\$(call get_pkg_root2) 167 167 EOF -
common/makefile-functions
rca6b261 r1f81129 17 17 nl_ = "" 18 18 19 #==== BUILD MESSAGES === 20 19 21 define echo_PHASE 20 22 @clear … … 37 39 @echo $(BOLD)$(BLUE)$@ 38 40 @echo $(WHITE)You are going to log into the user account $(BOLD)$(YELLOW)$(LUSER)$(OFF) 39 @echo su requires a password 41 @echo su requires a password 40 42 endef 41 43 … … 52 54 @echo $(BOLD)$(1) target $(BLUE)$@$(BOLD)$(WHITE) 53 55 endef 56 57 #======================= 58 59 60 #=== BUILD FUNCTIONS === 54 61 55 62 define remove_existing_dirs … … 67 74 endef 68 75 69 define remove_build_dirs 70 @ROOT=`head -n1 $(SRCSDIR)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \ 71 rm -rf $(SRCSDIR)/$$ROOT && \ 72 rm -rf $(SRCSDIR)/$(1)-build 73 endef 74 75 define remove_build_dirs2 76 @ROOT=`head -n1 $(SRC)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \ 77 rm -rf $(SRC)/$$ROOT && \ 78 rm -rf $(SRC)/$(1)-build 79 endef 80 81 define housekeeping 82 @touch $@ && \ 83 sleep .25 && \ 84 echo -e "\n" $(BOLD)Target $(BLUE)$@ $(WHITE)$(BOLD)OK && \ 85 echo --------------------------------------------------------------------------------$(WHITE) 86 87 endef 76 #==# 77 78 define unpack 79 @cd $(SRCSDIR) && \ 80 tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST) 81 endef 82 83 define unpack2 84 @cd $(SRC) && \ 85 tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST) 86 endef 87 88 #==# 88 89 89 90 define get_pkg_root … … 107 108 endef 108 109 109 define unpack 110 @cd $(SRCSDIR) && \ 111 tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST) 112 endef 113 114 define unpack2 115 @cd $(SRCSDIR) && \ 116 /tools/bin/tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST) 117 endef 118 119 define unpack3 120 @cd $(SRC) && \ 121 tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST) 122 endef 110 #==# 111 112 define remove_build_dirs 113 @ROOT=`head -n1 $(SRCSDIR)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \ 114 rm -rf $(SRCSDIR)/$$ROOT && \ 115 rm -rf $(SRCSDIR)/$(1)-build 116 endef 117 118 define remove_build_dirs2 119 @ROOT=`head -n1 $(SRC)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \ 120 rm -rf $(SRC)/$$ROOT && \ 121 rm -rf $(SRC)/$(1)-build 122 endef 123 124 #==# 125 126 define housekeeping 127 @touch $@ && \ 128 sleep .25 && \ 129 echo -e "\n" $(BOLD)Target $(BLUE)$@ $(WHITE)$(BOLD)OK && \ 130 echo --------------------------------------------------------------------------------$(WHITE) 131 132 endef 133 134 #======================= 135 136 137 #==== FINAL MESSAGES === 123 138 124 139 define echo_report
Note:
See TracChangeset
for help on using the changeset viewer.