From patchwork Sun Mar 17 21:37:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerzy Grzegorek X-Patchwork-Id: 228331 X-Patchwork-Delegate: yann.morin.1998@free.fr Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 5411B2C00B0 for ; Mon, 18 Mar 2013 08:58:17 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id BC2CF103A92; Sun, 17 Mar 2013 21:58:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5+ppgLrh+VyY; Sun, 17 Mar 2013 21:57:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id E9304101A5C; Sun, 17 Mar 2013 21:57:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E9FA38F74B for ; Sun, 17 Mar 2013 21:58:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5EDA88BB68 for ; Sun, 17 Mar 2013 21:58:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pbA3kHKVVmQO for ; Sun, 17 Mar 2013 21:58:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from poczta.trzebnica.net (tasak.trzebnica.net [91.195.232.70]) by whitealder.osuosl.org (Postfix) with ESMTP id 0D4EB8A2B9 for ; Sun, 17 Mar 2013 21:58:10 +0000 (UTC) Received: from localhost.localdomain (93-181-143-72.internetia.net.pl [93.181.143.72]) by poczta.trzebnica.net (Postfix) with ESMTP id 90CFE37DD3; Sun, 17 Mar 2013 22:58:08 +0100 (CET) From: Jerzy Grzegorek To: buildroot@busybox.net Date: Sun, 17 Mar 2013 22:37:35 +0100 Message-Id: <1363556255-865-1-git-send-email-jerzy.grzegorek@trzebnica.net> X-Mailer: git-send-email 1.7.9.5 Subject: [Buildroot] [PATCH] apply-patches.sh: applying xz-ed patches X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Jerzy Grzegorek --- support/scripts/apply-patches.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-patches.sh index 7a6c1fa..b677ed0 100755 --- a/support/scripts/apply-patches.sh +++ b/support/scripts/apply-patches.sh @@ -23,8 +23,8 @@ # 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 -# 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' # file in the build directory. @@ -59,6 +59,8 @@ function apply_patch { type="bzip"; uncomp="bunzip -dc"; ;; *.bz2) type="bzip2"; uncomp="bunzip2 -dc"; ;; + *.xz) + type="xz"; uncomp="unxz -dc"; ;; *.zip) type="zip"; uncomp="unzip -d"; ;; *.Z)