From patchwork Wed Feb 13 15:46:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerzy Grzegorek X-Patchwork-Id: 220175 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 5DFC52C0293 for ; Thu, 14 Feb 2013 02:50:02 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 48D1A102116; Wed, 13 Feb 2013 15:49:48 +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 VaN1vWen9Jcc; Wed, 13 Feb 2013 15:49:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3E2C8101901; Wed, 13 Feb 2013 15:49:44 +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 D59518F753 for ; Wed, 13 Feb 2013 15:50:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5C6D38C460 for ; Wed, 13 Feb 2013 15:49:55 +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 hHC2MvA-iBsD for ; Wed, 13 Feb 2013 15:49:44 +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 BAEB08C847 for ; Wed, 13 Feb 2013 15:46:42 +0000 (UTC) Received: from localhost.localdomain (93-181-142-99.internetia.net.pl [93.181.142.99]) by poczta.trzebnica.net (Postfix) with ESMTP id B964937DD3; Wed, 13 Feb 2013 16:46:40 +0100 (CET) From: Jerzy Grzegorek To: buildroot@busybox.net Date: Wed, 13 Feb 2013 16:46:32 +0100 Message-Id: <1360770393-2864-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 compressed 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 Acked-by: Arnout Vandecappelle (Essensium/Mind) --- 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..7d5856c 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)