|
Boost-Build : |
Subject: Re: [Boost-build] Unconditional shell command without <conditional>?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-01-29 10:10:41
AMDG
On 1/29/2011 6:26 AM, Boris Schaeling wrote:
> I'm converting a Makefile to a Jamfile and need to define a macro with a
> Subversion revision number. I came up with this Jamfile:
>
> project : requirements <conditional>@add-svn-revision ;
> rule add-svn-revision ( properties * )
> {
> local svn_ref = [ SHELL "svnversion -n" ] ;
> return <define>SVN_REV=\"$(svn_ref)\" ;
> }
>
> While this works I wonder if there is a better (shorter) way? Can I
> inline the call to "svnversion -n" without using <conditional>?
>
svn-ref = [ SHELL "svnversion -n" ] ;
project : requirements <define>SVN_REV=\"$(svn-ref)\" ;
?
In Christ,
Steven Watanabe
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