all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [elpa] --exclude-vcs for multi-file archives?
@ 2014-05-22 10:07 Mario Lang
  2014-05-22 14:05 ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Mario Lang @ 2014-05-22 10:07 UTC (permalink / raw)
  To: emacs-devel

Hi.

While integrating chess.el into ELPA, I noticed that the .git
subdirectory of packages/<external-name> is placed in the tarballs.  I have manually
added ".git" to .elpaignore in packages/chess for now, but I wonder if a
more generic solution is in order.  Adding --exclude-vcs to the tar call
in GNUMakefile seems like the right thing to do.  If I try, about all
the archive shrinks about 300k, so we definitely ship stuff which (IMHO)
shouldn't be shipped in a tarball.

Am I fine to commit this change, or can anyone see an actual reason why
a left-over .git directory in the release tarball might actually be needed?

diff --git a/GNUmakefile b/GNUmakefile
index 03a25f2..7d88843 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -54,7 +54,7 @@ process-archive:
 	      fi;						\
 	      if [ -d $$pt ]; then				\
 		  echo "Creating tarball $${pt}.tar" &&		\
-		  tar -cf $${pt}.tar $$pt -X "$$ignore";	\
+		  tar -cf $${pt}.tar $$pt --exclude-vcs -X "$$ignore";	\
 		  rm -rf $${pt}; 				\
 	      fi;						\
 	  done

-- 
CYa,
  ⡍⠁⠗⠊⠕
  



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

end of thread, other threads:[~2014-05-23  0:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-22 10:07 [elpa] --exclude-vcs for multi-file archives? Mario Lang
2014-05-22 14:05 ` Stefan Monnier
2014-05-22 14:35   ` Mario Lang
2014-05-22 16:09     ` Stefan Monnier
2014-05-22 16:55       ` Mario Lang
2014-05-22 17:14         ` David Kastrup
2014-05-22 20:28           ` Mario Lang
2014-05-23  0:58           ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.