[jamming] BJam's command/shell execution
Diane Holt
holt.diane at gmail.com
Fri Mar 23 15:47:06 PST 2007
Well, the problem with you awk is that you have a redirect with nothing to
redirect from -- but I wanted to find out if it was because REV really
wasn't set, which is why I had you fix the Echo. Looks like it's not, so I
guess theirs doesn't work that way -- and I don't know what way it does.
Diane
On 3/23/07, Josh Pollak <jpollak at kivasystems.com> wrote:
>
> 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...
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://maillist.perforce.com/pipermail/jamming/attachments/20070323/c077dfbc/attachment.html
More information about the jamming
mailing list