Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] <pkg>-rsync: exclude version control files
@ 2013-03-01 20:26 Thomas De Schampheleire
  2013-03-04 20:04 ` Peter Korsgaard
  2013-03-17 13:41 ` Peter Korsgaard
  0 siblings, 2 replies; 7+ messages in thread
From: Thomas De Schampheleire @ 2013-03-01 20:26 UTC (permalink / raw)
  To: buildroot

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 <thomas.de.schampheleire@gmail.com>

---
 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-03-17 13:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-01 20:26 [Buildroot] [PATCH] <pkg>-rsync: exclude version control files Thomas De Schampheleire
2013-03-04 20:04 ` Peter Korsgaard
2013-03-04 20:15   ` Thomas De Schampheleire
2013-03-06 17:47   ` Arnout Vandecappelle
2013-03-10 22:45     ` Peter Korsgaard
2013-03-11 17:51       ` Thomas Petazzoni
2013-03-17 13:41 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox