|
Boost-Build : |
Subject: [Boost-build] Creating a "source zip"
From: Michael Medin (michael_at_[hidden])
Date: 2009-09-22 16:20:54
Hello,
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
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