GNU bug report logs - #13324
Improvements to "dist" targets (was: Re: EXTRA_DIST, directories, tar --exclude-vcs)

Previous Next

Package: automake;

Reported by: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Date: Tue, 1 Jan 2013 01:11:01 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Bob Friesenhahn <bfriesen <at> simple.dallas.tx.us>
To: Stefano Lattarini <stefano.lattarini <at> gmail.com>
Cc: automake <at> gnu.org, 13324 <at> debbugs.gnu.org, karl <at> freefriends.org
Subject: bug#13324: Improvements to "dist" targets (was: Re: EXTRA_DIST, directories,  tar --exclude-vcs)
Date: Tue, 1 Jan 2013 15:09:31 -0600 (CST)
On Tue, 1 Jan 2013, Stefano Lattarini wrote:
>>
>> I don't propose any major surgery to make it work in every conceivable
>> circumstance.  All that is really necessary is to provide a way to pass
>> --exclude-vcs to tar.  It would only work with GNU tar, but that is ok.

In GraphicsMagick I use find+cpio to copy directories.  This allows 
using egrep to filter out files which should not be distributed.

Is this combination more portable than GNU tar?

DISTDIRS = locale scripts www PerlMagick TclMagick
dist-hook:
	( \
	  builddir=`pwd` ; \
	  cd $(srcdir) && \
	  ( \
	    for dir in $(DISTDIRS) ; do \
	      find $$dir -depth -print | egrep -v '(~$$)|(/\.hg)|(/\.#)|(/\.deps)|(\.pyc)' \
	        | cpio -pdum $$builddir/$(distdir) 2> /dev/null ; \
	    done \
	  ) \
	)

Bob
-- 
Bob Friesenhahn
bfriesen <at> simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




This bug report was last modified 12 years and 164 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.