From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mario Lang Newsgroups: gmane.emacs.devel Subject: [elpa] --exclude-vcs for multi-file archives? Date: Thu, 22 May 2014 12:07:42 +0200 Message-ID: <8738g2i0sx.fsf@fx.delysid.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1400753293 24429 80.91.229.3 (22 May 2014 10:08:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 May 2014 10:08:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 22 12:08:06 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WnPuw-0002aS-Di for ged-emacs-devel@m.gmane.org; Thu, 22 May 2014 12:08:06 +0200 Original-Received: from localhost ([::1]:36154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnPuv-0004ri-SE for ged-emacs-devel@m.gmane.org; Thu, 22 May 2014 06:08:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnPul-0004rD-8a for emacs-devel@gnu.org; Thu, 22 May 2014 06:08:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnPuc-0005bg-Rk for emacs-devel@gnu.org; Thu, 22 May 2014 06:07:55 -0400 Original-Received: from fep11.mx.upcmail.net ([62.179.121.31]:55293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnPuc-0005bA-H2 for emacs-devel@gnu.org; Thu, 22 May 2014 06:07:46 -0400 Original-Received: from edge03.upcmail.net ([192.168.13.238]) by viefep11-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20140522100743.LDOT23613.viefep11-int.chello.at@edge03.upcmail.net> for ; Thu, 22 May 2014 12:07:43 +0200 Original-Received: from fx.delysid.org ([80.109.200.215]) by edge03.upcmail.net with edge id 4y7j1o0074fLMH403y7jAg; Thu, 22 May 2014 12:07:43 +0200 X-SourceIP: 80.109.200.215 Original-Received: from mlang by fx.delysid.org with local (Exim 4.82) (envelope-from ) id 1WnPuY-0003k0-UP for emacs-devel@gnu.org; Thu, 22 May 2014 12:07:42 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 62.179.121.31 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172019 Archived-At: Hi. While integrating chess.el into ELPA, I noticed that the .git subdirectory of packages/ 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 --=20 CYa, =E2=A1=8D=E2=A0=81=E2=A0=97=E2=A0=8A=E2=A0=95 =20=20