[Top][All Lists]

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

Re: Packaging a directory tree with scripts.

From: Bob Friesenhahn
Subject: Re: Packaging a directory tree with scripts.
Date: Wed, 28 Dec 2005 12:52:29 -0600 (CST)

On Wed, 28 Dec 2005, Pat Suwalski wrote:

I would like to include the src/tools directory in the distribution, but
all of the tools are perl scripts. It seems wasteful to be making's and's which are ten times larger than the
tools within each of the directories.

I am aware of the possibility of adding "tools/" to EXTRA_DIST in
src/, but maybe there is a cleaner solution that I'm missing?

I was thinking something along the lines of a hand-writted, very simple
Makefile that doesn't have any of the compiling cruft not needed. These
scripts are only to be in the source tarball, they don't get installed.

I use this in the top-level

# Non-Automake subdirectories to distribute
DISTDIRS = dir1 dir2 dir3
        ( \
          builddir=`pwd` ; \
          cd $(srcdir) && \
          ( \
            for dir in $(DISTDIRS) ; do \
              find $$dir -depth -print | egrep -v 
'(~$$)|(/CVS)|(/\.#)|(/\.deps)' \
                | cpio -pdum $$builddir/$(distdir) 2> /dev/null ; \
            done \
          ) \


Bob Friesenhahn
GraphicsMagick Maintainer,

reply via email to

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