Changeset 2275 in kBuild
- Timestamp:
- Feb 20, 2009 11:46:29 PM (16 years ago)
- Location:
- trunk/kBuild/tools
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/TAR.kmk
r2243 r2275 40 40 TOOL_TAR_TAR := $(wildcard $(PATH_DEVTOOLS_BLD)/bin/tar$(HOSTSUFF_EXE)) 41 41 endif 42 if eq ($(TOOL_TAR_TAR),)42 ifneq ($(TOOL_TAR_TAR),) 43 43 TOOL_TAR_TAR := $(lastword $(sort $(TOOL_TAR_TAR))) 44 44 else … … 65 65 define TOOL_TAR_UNPACK_CMDS 66 66 $(QUIET)$(TOOL_TAR_UNPACK) -x $(flags) -C $(subst G:,,$(inst)) -f $(archive) 67 $(QUIET)$(TOOL_TAR_UNPACK) -t $(f lags) -f $(archive) > $(out)67 $(QUIET)$(TOOL_TAR_UNPACK) -t $(filter-out -v --verbose,$(flags)) -f $(archive) > $(out) 68 68 endef 69 69 else 70 70 define TOOL_TAR_UNPACK_CMDS 71 71 $(QUIET)$(TOOL_TAR_UNPACK) -x $(flags) -C $(inst) -f $(archive) 72 $(QUIET)$(TOOL_TAR_UNPACK) -t $(f lags) -f $(archive) > $(out)72 $(QUIET)$(TOOL_TAR_UNPACK) -t $(filter-out -v --verbose,$(flags)) -f $(archive) > $(out) 73 73 endef 74 74 endif -
trunk/kBuild/tools/TARBZ2.kmk
r2272 r2275 1 1 # $Id$ 2 2 ## @file 3 # kBuild Tool Config - tar. gzunpacker.3 # kBuild Tool Config - tar.bz2 unpacker. 4 4 # 5 5 … … 32 32 # 33 33 34 TOOL_TARGZ := tar.gz unpacker. 34 TOOL_TARBZ2 := tar.bz2 unpacker. 35 TOOL_TARBZ2_EXTENDS = TAR 36 TOOL_TARBZ2_UNPACKFLAGS ?= -j 35 37 36 # Tool Specific Properties37 ifndef TOOL_TARGZ_TAR38 TOOL_TARGZ_TAR := $(wildcard $(PATH_DEVTOOLS_BLD)/tar/v*/tar$(HOSTSUFF_EXE))39 ifeq ($(TOOL_TARGZ_TAR),)40 TOOL_TARGZ_TAR := $(wildcard $(PATH_DEVTOOLS_BLD)/bin/tar$(HOSTSUFF_EXE))41 endif42 ifeq ($(TOOL_TARGZ_TAR),)43 TOOL_TARGZ_TAR := $(TOOL_TAR_TAR)44 endif45 ifeq ($(TOOL_TARGZ_TAR),)46 TOOL_TARGZ_TAR := $(lastword $(sort $(TOOL_TARGZ_TAR)))47 else48 TOOL_TARGZ_TAR := tar$(HOSTSUFF_EXE)49 endif50 else51 TOOL_TARGZ_TAR := $(TOOL_TARGZ_TAR)52 endif53 TOOL_TARGZ_UNPACK ?= $(TOOL_TARGZ_TAR)54 55 # General Properties used by kBuild56 TOOL_TARGZ_UNPACKFLAGS ?= -z57 58 ## UNPACK one file.59 # @param $(target) Normalized main target name.60 # @param $(archive) The file to unpack.61 # @param $(flags) Flags.62 # @param $(inst) Where to unpack it.63 # @param $(out) Where to write the file list.64 TOOL_TARGZ_UNPACK_OUTPUT =65 TOOL_TARGZ_UNPACK_DEPEND =66 TOOL_TARGZ_UNPACK_DEPORD =67 ifeq ($(KBUILD_HOST),win) # hacking with buggy unxutils on windows. it doesn't like driver letters.68 define TOOL_TARGZ_UNPACK_CMDS69 $(QUIET)$(TOOL_TARGZ_UNPACK) -x $(flags) -C $(subst G:,,$(inst)) -f $(archive)70 $(QUIET)$(TOOL_TARGZ_UNPACK) -t $(flags) -f $(archive) > $(out)71 endef72 else73 define TOOL_TARGZ_UNPACK_CMDS74 $(QUIET)$(TOOL_TARGZ_UNPACK) -x $(flags) -C $(inst) -f $(archive)75 $(QUIET)$(TOOL_TARGZ_UNPACK) -t $(flags) -f $(archive) > $(out)76 endef77 endif78 -
trunk/kBuild/tools/TARGZ.kmk
r2246 r2275 33 33 34 34 TOOL_TARGZ := tar.gz unpacker. 35 36 # Tool Specific Properties 37 ifndef TOOL_TARGZ_TAR 38 TOOL_TARGZ_TAR := $(wildcard $(PATH_DEVTOOLS_BLD)/tar/v*/tar$(HOSTSUFF_EXE)) 39 ifeq ($(TOOL_TARGZ_TAR),) 40 TOOL_TARGZ_TAR := $(wildcard $(PATH_DEVTOOLS_BLD)/bin/tar$(HOSTSUFF_EXE)) 41 endif 42 ifeq ($(TOOL_TARGZ_TAR),) 43 TOOL_TARGZ_TAR := $(TOOL_TAR_TAR) 44 endif 45 ifeq ($(TOOL_TARGZ_TAR),) 46 TOOL_TARGZ_TAR := $(lastword $(sort $(TOOL_TARGZ_TAR))) 47 else 48 TOOL_TARGZ_TAR := tar$(HOSTSUFF_EXE) 49 endif 50 else 51 TOOL_TARGZ_TAR := $(TOOL_TARGZ_TAR) 52 endif 53 TOOL_TARGZ_UNPACK ?= $(TOOL_TARGZ_TAR) 54 55 # General Properties used by kBuild 35 TOOL_TARGZ_EXTENDS = TAR 56 36 TOOL_TARGZ_UNPACKFLAGS ?= -z 57 37 58 ## UNPACK one file.59 # @param $(target) Normalized main target name.60 # @param $(archive) The file to unpack.61 # @param $(flags) Flags.62 # @param $(inst) Where to unpack it.63 # @param $(out) Where to write the file list.64 TOOL_TARGZ_UNPACK_OUTPUT =65 TOOL_TARGZ_UNPACK_DEPEND =66 TOOL_TARGZ_UNPACK_DEPORD =67 ifeq ($(KBUILD_HOST),win) # hacking with buggy unxutils on windows. it doesn't like driver letters.68 define TOOL_TARGZ_UNPACK_CMDS69 $(QUIET)$(TOOL_TARGZ_UNPACK) -x $(flags) -C $(subst G:,,$(inst)) -f $(archive)70 $(QUIET)$(TOOL_TARGZ_UNPACK) -t $(flags) -f $(archive) > $(out)71 endef72 else73 define TOOL_TARGZ_UNPACK_CMDS74 $(QUIET)$(TOOL_TARGZ_UNPACK) -x $(flags) -C $(inst) -f $(archive)75 $(QUIET)$(TOOL_TARGZ_UNPACK) -t $(flags) -f $(archive) > $(out)76 endef77 endif78
Note:
See TracChangeset
for help on using the changeset viewer.