Browse Source

allow xz compressed tar archives to be extracted

Waldemar Brodkorb 14 years ago
parent
commit
45030d5e47
1 changed files with 2 additions and 0 deletions
  1. 2 0
      mk/vars.mk

+ 2 - 0
mk/vars.mk

@@ -183,6 +183,8 @@ EXTRACT_CMD=		mkdir -p ${WRKDIR}; \
 				tar -xf $$file ;; \
 				tar -xf $$file ;; \
 			*.cpio.Z | *.cpio.gz | *.cgz | *.mcz) \
 			*.cpio.Z | *.cpio.gz | *.cgz | *.mcz) \
 				gzip -dc $$file | $(TOOLS_DIR)/cpio -i -d ;; \
 				gzip -dc $$file | $(TOOLS_DIR)/cpio -i -d ;; \
+			*.tar.xz | *.txz) \
+				xz -dc $$file | tar -xf - ;; \
 			*.tar.Z | *.tar.gz | *.taz | *.tgz) \
 			*.tar.Z | *.tar.gz | *.taz | *.tgz) \
 				gzip -dc $$file | tar -xf - ;; \
 				gzip -dc $$file | tar -xf - ;; \
 			*.cpio.bz2 | *.cbz) \
 			*.cpio.bz2 | *.cbz) \