From patchwork Fri Mar 1 20:26:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas De Schampheleire X-Patchwork-Id: 224451 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 A16C52C02EB for ; Sat, 2 Mar 2013 07:27:06 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id EC6C610B9B6; Fri, 1 Mar 2013 20:26:51 +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 fM99hybYzlP6; Fri, 1 Mar 2013 20:26:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4305B10B92B; Fri, 1 Mar 2013 20:26:49 +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 6017C8F783 for ; Fri, 1 Mar 2013 20:27:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A292B8CDE5 for ; Fri, 1 Mar 2013 20:27:01 +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 oHPfEulntpaK for ; Fri, 1 Mar 2013 20:27:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ee0-f43.google.com (mail-ee0-f43.google.com [74.125.83.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7C37B8CD41 for ; Fri, 1 Mar 2013 20:27:00 +0000 (UTC) Received: by mail-ee0-f43.google.com with SMTP id c50so2725733eek.2 for ; Fri, 01 Mar 2013 12:26:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:content-type:mime-version :content-transfer-encoding:subject:x-mercurial-node:message-id :user-agent:date:from:to:cc; bh=h/b7l47TKlMXS9LDgKI9M0BMBXInH5UXGr5Mb6Rgx8s=; b=gsgDCf9oXLucyOiN0q+O74p+fG8XvODO0a19yPL2yIbVYmulxXUtaw3WFf8Ij/oGuy MoqyVKp7iAHbtFPa1sKNu6k584ETp8ROMQfhD0OsJN/Fhpl5by6SJJSiAtReB1U0QtAF IC7z6JK/8qk4iksWvju/YzCxCnJMx388li1130pGVlYBq1BXVi7AKC6uWTPiKHe4cS+l 2zFtZay+ytrGwZKZwew9JM4xKRy8T+V7x5ccdN8Zxzr/eM2ki+679dcsUTCNjLMDKHGs ggcf5a0sOw+RkbWfm93fjU//Tr/HKPNMGDKXQqT+icUZYTBiIGulVDS5d1XzdosOsVWS S7SA== X-Received: by 10.14.179.5 with SMTP id g5mr31355055eem.41.1362169618787; Fri, 01 Mar 2013 12:26:58 -0800 (PST) Received: from [127.0.1.1] (d54C62EEB.access.telenet.be. [84.198.46.235]) by mx.google.com with ESMTPS id s3sm18856371eem.4.2013.03.01.12.26.57 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Mar 2013 12:26:57 -0800 (PST) MIME-Version: 1.0 X-Mercurial-Node: f9ac20b69b1bfd3f77ef14c2f31a29df46ad940a Message-Id: User-Agent: Mercurial-patchbomb/2.2.2 Date: Fri, 01 Mar 2013 21:26:38 +0100 From: Thomas De Schampheleire To: buildroot@busybox.net Subject: [Buildroot] [PATCH] -rsync: exclude version control files 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 When using rsync to import package sources (typically with PKG_OVERRIDE_SRCDIR), it often happens that these external sources are under version control, and contain directories like .git, .hg, etc. Depending on the project, these directories can become pretty large and typically have a lot of files. Moreover, they are not necessary in the context of building the package. Therefore, this commit adds the --cvs-exclude option to the rsync call, saving both disk space and sync time. Signed-off-by: Thomas De Schampheleire --- package/pkg-generic.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -62,7 +62,7 @@ endif $(BUILD_DIR)/%/.stamp_rsynced: @$(call MESSAGE,"Syncing from source dir $(SRCDIR)") @test -d $(SRCDIR) || (echo "ERROR: $(SRCDIR) does not exist" ; exit 1) - rsync -au $(SRCDIR)/ $(@D) + rsync -au --cvs-exclude $(SRCDIR)/ $(@D) $(Q)touch $@ # Handle the SOURCE_CHECK and SHOW_EXTERNAL_DEPS cases for rsynced