Changeset 2275 for trunk/kBuild/tools/TARBZ2.kmk
- Timestamp:
- Feb 21, 2009, 12:46:29 AM (16 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.