From patchwork Sun Mar 24 22:50:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 230522 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 205BC2C0082 for ; Mon, 25 Mar 2013 09:55:48 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 21CC8A0420; Sun, 24 Mar 2013 22:55:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nXiYCFotpAVh; Sun, 24 Mar 2013 22:55:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 692D2A0288; Sun, 24 Mar 2013 22:51:53 +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 045088F753 for ; Sun, 24 Mar 2013 22:51:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 861838CFC5 for ; Sun, 24 Mar 2013 22:51:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WcIFVKT7UBaM for ; Sun, 24 Mar 2013 22:51:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by whitealder.osuosl.org (Postfix) with ESMTPS id 861808CF62 for ; Sun, 24 Mar 2013 22:51:17 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id fg15so202198wgb.25 for ; Sun, 24 Mar 2013 15:51:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references; bh=UPQzBtTlYQf0gMbo9MduyuMaFdIbyFkwy3+iRTJRt50=; b=FSzacDXT+SAHdblKM5eUQYV4mmkQksYKUc6d7M4CKijs6z+X5Skaazv1PwOQOvw+t2 rL1MlvHbe6GT6lWGNxMag4yDdOHuZe2c6xZMMij29D4DHdSlAkI+Fzm6wFvDmh19Dqpr xuzptmXkJdL5A3r2ZO5A1fHldoqAv+H1wJP6guqgwvYiXssrJZk9/IKx3K+2y28B/EUB VoeVQ2dLlTmfuy4rQTOvqKkl0RoiStXuRzA4zux3I7WFryM1iEZMi5oIaj5a7HBWGCmu 8juOAG8nfWX46/Xo1EltOXYbUEoiWa1Q+cdmyMFOEIU+AXrQbaHlNoRj7RO3v0z+KSXi EXFQ== X-Received: by 10.180.14.202 with SMTP id r10mr13751405wic.8.1364165475775; Sun, 24 Mar 2013 15:51:15 -0700 (PDT) Received: from localhost.localdomain (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPS id er1sm16514587wib.5.2013.03.24.15.51.14 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 24 Mar 2013 15:51:15 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Sun, 24 Mar 2013 23:50:46 +0100 Message-Id: <96bf04321c5e4c983e0960e1c24df18572a7534c.1364165310.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: References: In-Reply-To: References: Cc: Jerzy Grzegorek , "Yann E. MORIN" Subject: [Buildroot] [PATCH 11/14] 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 From: Jerzy Grzegorek Signed-off-by: Jerzy Grzegorek [yann.morin.1998@free.fr: space-damage] Signed-off-by: "Yann E. MORIN" --- support/scripts/apply-patches.sh | 6 ++++-- 1 files 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)