[jamming] BJam's command/shell execution

Josh Pollak jpollak at kivasystems.com
Fri Mar 23 11:53:12 PST 2007


On Fri, 2007-03-23 at 12:38 -0700, Diane Holt wrote:
> Unless bjam has changed the way a var is referenced, try:
> 
> Echo REV is $(REV) ;
> 
> (Note the parens ... I added the "REV is" so you can see the line,
> even if REV doesn't have a value.)


That doesn't seem to help... I'm not very up on awk, but it looks like
it is trying to write #!/bin/sh to a file called 'svnversion' :

jpollak at moya:~/src/myproj$ jam
REV is
...found 8 targets...
...updating 1 target...
Shell svnversion
/bin/sh: Syntax error: redirection unexpected

awk  '
NR == 1 { print "#!/bin/sh"  }
NR == 1 && /^[#:]/ { next }
/^##/ { next }
{ print }
' <  > svnversion 

...failed Shell svnversion...
...failed updating 1 target...


More information about the jamming mailing list