浏览代码

apply-patches.sh: applying xz-ed patches

Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net>
[yann.morin.1998@free.fr: space-damage]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Jerzy Grzegorek 12 年之前
父节点
当前提交
cc0fd417d4
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      support/scripts/apply-patches.sh

+ 4 - 2
support/scripts/apply-patches.sh

@@ -23,8 +23,8 @@
 # files than series file and archives are considered as a patch.
 # files than series file and archives are considered as a patch.
 #
 #
 # Once a patch is found, the script will try to apply it. If its name doesn't
 # Once a patch is found, the script will try to apply it. If its name doesn't
-# end with '.gz', '.bz', '.bz2', '.zip', '.Z', '.diff*' or '.patch*', it will
-# be skipped. If necessary, the patch will be uncompressed before being
+# end with '.gz', '.bz', '.bz2', '.xz', '.zip', '.Z', '.diff*' or '.patch*',
+# it will be skipped. If necessary, the patch will be uncompressed before being
 # applied. The list of the patches applied is stored in '.applied_patches_list'
 # applied. The list of the patches applied is stored in '.applied_patches_list'
 # file in the build directory.
 # file in the build directory.
 
 
@@ -59,6 +59,8 @@ function apply_patch {
 	type="bzip"; uncomp="bunzip -dc"; ;; 
 	type="bzip"; uncomp="bunzip -dc"; ;; 
 	*.bz2)
 	*.bz2)
 	type="bzip2"; uncomp="bunzip2 -dc"; ;; 
 	type="bzip2"; uncomp="bunzip2 -dc"; ;; 
+	*.xz)
+	type="xz"; uncomp="unxz -dc"; ;;
 	*.zip)
 	*.zip)
 	type="zip"; uncomp="unzip -d"; ;; 
 	type="zip"; uncomp="unzip -d"; ;; 
 	*.Z)
 	*.Z)