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
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/