automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Improvements to "dist" targets (was: Re: EXTRA_DIST, directories, t


From: Bob Friesenhahn
Subject: Re: Improvements to "dist" targets (was: Re: EXTRA_DIST, directories, tar --exclude-vcs)
Date: Tue, 1 Jan 2013 15:09:31 -0600 (CST)
User-agent: Alpine 2.01 (GSO 1266 2009-07-14)

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
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]