Boost logo

Boost-Build :

Subject: Re: [Boost-build] creating timestamped zip-files?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-20 14:50:33


Michael Medin wrote:
> I posted a few days ago aking how to make a custom command utilize the
> tag feature, but apparently this was impossible so now I post instead
> trying to find a solution to my problem.
> I want to create a "zip" file along the lines of the following:
> <program name>-<architecture>-<version>-<date>.zip
> The version is extracted from a .h file, the architecture from the
> build, and the date from the system clock. The program name is "known".
> But how can i accomplish this?
> I currently use the <tag> feature to do the same for a wix based
> installer (msi.wix) which works splendidly but the zip is anaction and
> actions do not care about the tag feature.

I suspect that the easiest way is to make a zip generator (untested):

# zip.jam
type.register ZIP : zip ;
generators.register-composing zip.make-zip : : ZIP ;
actions make-zip {
    # ...

This allows

import zip ;

zip my-zip-archive : sources : <tag>... ;

In Christ,
Steven Watanabe

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at