<br><br><div class="gmail_quote">On Sat, Nov 17, 2012 at 2:29 PM, Mariano Martinez Peck <span dir="ltr"><<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div class="im">On Sat, Nov 17, 2012 at 1:49 PM, Igor Stasenko <span dir="ltr"><<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
On 17 November 2012 09:00, Mariano Martinez Peck <<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>> wrote:<br>
><br>
> zsh but Luc is not (I think) and he got the same problem.<br>
> Do you think this can be the problem?<br>
><br>
</div>sure. because echo is builtin shell command<br>
<div><div><br></div></div></blockquote><div> </div></div><div>With the following I get the same results:</div><div><br></div><div>sh ../codegen-scripts/extract-commit-info.sh</div><div><div class="h5"><div> </div><div><br>
</div></div></div></div></blockquote><div><br></div><div>Adding #!/bin/bash</div><div>at the beginning of the file woks of course.</div><div>Can I commit that?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div><div class="h5"><div>
</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
> On Sat, Nov 17, 2012 at 12:58 PM, Igor Stasenko <<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@gmail.com</a>> wrote:<br>
>><br>
>><br>
>> On 17 November 2012 07:24, Mariano Martinez Peck <<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>> wrote:<br>
>> ><br>
>> > Hi. The following script:<br>
>> ><br>
>> > # run this script from build/ subdirectory, so vmVersionInfo.h will be placed in build dir<br>
>> ><br>
>> > URL=`git config --get remote.origin.url`<br>
>> > COMMIT=`git show HEAD --pretty="Commit: %H Date: %ci By: %cn <%cE>" | head -n 1`<br>
>> ><br>
>> > echo -n "#define REVISION_STRING \"$URL $COMMIT " > vmVersionInfo.h<br>
>> > test -n "${BUILD_NUMBER}" && echo -n "Jenkins build #${BUILD_NUMBER}" >> vmVersionInfo.h || echo<br>
>> > echo "\"" >> vmVersionInfo.h<br>
>> ><br>
>> ><br>
>> > fails in 10.6.8 because the result is:<br>
>> ><br>
>> > -n #define REVISION_STRING "git://<a href="http://gitorious.org/cogvm/blessed.git" target="_blank">gitorious.org/cogvm/blessed.git</a> Commit: e0c448cf8de6377605d8831ae20f72565c1922ca Date: 2012-11-14 15:34:11 +0100 By: Esteban Lorenzano <<a href="mailto:estebanlm@gmail.com" target="_blank">estebanlm@gmail.com</a>><br>
>> ><br>
>> > "<br>
>> ><br>
>> > (notice the -n at the beginning)<br>
>> ><br>
>> > This -n is the one that is in the first echo: echo -n "#define REVISION_STRING \"$URL $COMMIT " > vmVersionInfo.h<br>
>> ><br>
>> > What is weird is that script works in Lion....<br>
>> ><br>
>> > So, any workaround that could work in all OS?<br>
>> ><br>
>> what shell you using?<br>
>><br>
>> > --<br>
>> > Mariano<br>
>> > <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
>> ><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Best regards,<br>
>> Igor Stasenko.<br>
><br>
><br>
><br>
><br>
> --<br>
> Mariano<br>
> <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Best regards,<br>
Igor Stasenko.<br>
</div></div></blockquote></div></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>