Changeset 2275 for trunk/kBuild/tools/TARGZ.kmk
- Timestamp:
- Feb 21, 2009, 12:46:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.