From patchwork Fri May 18 20:47:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ludovic.desroches@atmel.com X-Patchwork-Id: 160152 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id DAF1CB6FC2 for ; Sat, 19 May 2012 06:48:13 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BF4A5269A1; Fri, 18 May 2012 20:48:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2Dbk65yP87tf; Fri, 18 May 2012 20:48:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 0FC2026CCD; Fri, 18 May 2012 20:48:11 +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 A9A198F75B for ; Fri, 18 May 2012 20:48:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 989248BED3 for ; Fri, 18 May 2012 20:48:09 +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 3p2HrSNoOqJQ for ; Fri, 18 May 2012 20:47:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from eusmtp01.atmel.com (eusmtp01.atmel.com [212.144.249.242]) by whitealder.osuosl.org (Postfix) with ESMTPS id 215918C81A for ; Fri, 18 May 2012 20:47:39 +0000 (UTC) Received: from HNOCHT02.corp.atmel.com (10.161.30.162) by eusmtp01.atmel.com (10.161.101.30) with Microsoft SMTP Server (TLS) id 14.2.247.3; Fri, 18 May 2012 22:47:31 +0200 Received: from ldesroches-Latitude-E6320.atmel.com (172.24.48.120) by HNOCHT02.corp.atmel.com (10.161.30.160) with Microsoft SMTP Server (TLS) id 14.2.247.3; Fri, 18 May 2012 22:47:13 +0200 From: To: Date: Fri, 18 May 2012 22:47:01 +0200 Message-ID: <1337374021-26978-1-git-send-email-ludovic.desroches@atmel.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Originating-IP: [172.24.48.120] Cc: Ludovic Desroches , nicolas.ferre@atmel.com Subject: [Buildroot] [PATCH] apply-patches.sh: add documentation 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: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Ludovic Desroches Signed-off-by: Ludovic Desroches --- Hi, Sorry for the delay, but as promised, some comments about the changes done to apply-patches.sh. Regards support/scripts/apply-patches.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-patches.sh index f82be86..7a6c1fa 100755 --- a/support/scripts/apply-patches.sh +++ b/support/scripts/apply-patches.sh @@ -4,6 +4,29 @@ # -Erik # # (c) 2002 Erik Andersen +# +# Parameters: +# - the build directory, optional, default value is '.'. The place where are +# the package sources. +# - the patch directory, optional, default '../kernel-patches'. The place +# where are the scripts you want to apply. +# - other parameters are the patch name patterns, optional, default value is +# '*'. Pattern(s) describing the patch names you want to apply. +# +# The script will look recursively for patches from the patch directory. If a +# file is named 'series' then only patches mentionned into it will be applied. +# If not, the script will look for file names matching pattern(s). If the name +# ends with '.tar.*', '.tbz2' or '.tgz', the file is considered as an archive +# and will be uncompressed into a directory named +# '.patches-name_of_the_archive-unpacked'. It's the turn of this directory to +# be scanned with '*' as pattern. Remember that scanning is recursive. Other +# 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 +# applied. The list of the patches applied is stored in '.applied_patches_list' +# file in the build directory. # Set directories from arguments, or use defaults. builddir=${1-.}