Boost logo

Boost-Build :

Subject: Re: [Boost-build] Unconditional shell command without <conditional>?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-01-31 16:33:17


AMDG

On 1/31/2011 12:48 PM, Boris Schaeling wrote:
> On Sat, 29 Jan 2011 16:10:41 +0100, Steven Watanabe
> <watanabesj_at_[hidden]> wrote:
>
>> [...]svn-ref = [ SHELL "svnversion -n" ] ;
>> project : requirements <define>SVN_REV=\"$(svn-ref)\" ;
>
> I think I was wondering if something similar to this works:
>
> project : requirements <define>SVN_REV=\" [ SHELL "svnversion -n" ] \" ;
>
> The command would only be executed if the target is built. But then it's
> not that important if it doesn't work. :)
>

What about "<define>SVN_REV=`svnversion -n`" (although
I don't think that will work on windows). I don't think
there's a portable way that's simpler than what you have.

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