Boost logo

Boost-Build :

From: akimboyko (akimboyko_at_[hidden])
Date: 2004-10-19 04:50:48


--- In jamboost_at_[hidden], Vladimir Prus <ghost_at_c...> wrote:
> akimboyko wrote:
>
> >
> >
> > hi.
> > How can i exec external command within Jamfile to fill SVN_REVISION
> > define?
> >
> > #this is Jamfile
> > #command is 'svnversion -n .'
> > project tests : requirements <include>.. <define>SVN_REVISION=1 ;
> >
> > lib jpeg : : <name>jpeg ;
> > lib tiff : : <name>tiff ;
> >
> > exe tests : [ glob *.cpp ] ../loki//loki/<link>static
> > ../src//images/<link>static jpeg tiff : <include>../src ;
> >
> > Or maybe i can run shell script from Jamfile to form some header with
> > current revision version (as this project will only compiled under
> > UNIXes).
>
> Does this:
>
> http://boost.org/boost-build2/doc/html/ch06s05.html
>
> answer you question?
>
> - Volodya
Yes, thanks, this may be helpful for someone else :)

project tests : requirements <include>.. <define>SVN_REVISION="`echo
-n \\\"; svnversion -n .; echo -n \\\"`" ;

Akim Boyko akim.b(DOG)ua.devzerog.com

 


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