Subject: Re: [Boost-build] Creating a "source zip"
From: Matthew Chambers (matthew.chambers_at_[hidden])
Date: 2009-09-22 16:29:50
If you can use tarballs instead of zips, you can use the tar.jam I wrote
using tar ; # default tar binary is expecting 'tar' in the PATH, so you
must add ": <path to tar>" if necessary
import tar ;
: a.cpp b.cpp [ glob *.h ] # sources
: <conditional>@conditional-tar-sources # use the <tar-source> feature
You use the "path-anchor:" prefix in sources to change the directory
(the equivalent of the -C option to tar).
Michael Medin wrote:
> Something I have been trying to figure out is how to create a source
> zip file.
> Something which should be pretty straight forward but seems to be
> harder then I expected.
> My idea is to either copy all the interesting files and then zip the
> directory or to zip the relevant files but I am not really sure how to
> go about it.
> In general I have trouble with the common.copy thing as it always
> generates "recursive rules" so maybe that is the problem:
> I started out like so:
> all-sources =
> [ glob-tree *.cpp *.h *.hpp : .svn ]
> for local l in $(all-sources)
> install $(l) : $(l) : source ;
> #make $(l) : $(l) : common.copy ;
> echo "Adding source for: $(l)" ;
> explicit $(l) ;
> alias all-sources-targets : $(all-sources) ;
> explicit all-sources-targets ;
> alias build-sources : all-sources-targets :
> <location>$(BOOST_STAGE_LOCATE)/source ;
> explicit build-sources ;
> but it does not work so I am open to ideas...
> // Michael Medin
> Unsubscribe & other changes:
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk