<br><br><div class="gmail_quote">On Sat, Nov 17, 2012 at 2:29 PM, Mariano Martinez Peck <span dir="ltr">&lt;<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>&gt;</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">&lt;<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@gmail.com</a>&gt;</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 &lt;<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; zsh but Luc is not (I think) and he got the same problem.<br>
&gt; Do you think this can be the problem?<br>
&gt;<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>
&gt; On Sat, Nov 17, 2012 at 12:58 PM, Igor Stasenko &lt;<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 17 November 2012 07:24, Mariano Martinez Peck &lt;<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Hi. The following script:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # run this script from build/ subdirectory, so vmVersionInfo.h will be placed in build dir<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; URL=`git config --get remote.origin.url`<br>
&gt;&gt; &gt; COMMIT=`git show HEAD --pretty=&quot;Commit: %H Date: %ci By: %cn &lt;%cE&gt;&quot; | head -n 1`<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; echo -n &quot;#define REVISION_STRING \&quot;$URL $COMMIT &quot; &gt; vmVersionInfo.h<br>
&gt;&gt; &gt; test -n &quot;${BUILD_NUMBER}&quot; &amp;&amp; echo -n &quot;Jenkins build #${BUILD_NUMBER}&quot; &gt;&gt; vmVersionInfo.h || echo<br>
&gt;&gt; &gt; echo &quot;\&quot;&quot; &gt;&gt; vmVersionInfo.h<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; fails in 10.6.8  because the result is:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; -n #define REVISION_STRING &quot;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 &lt;<a href="mailto:estebanlm@gmail.com" target="_blank">estebanlm@gmail.com</a>&gt;<br>


&gt;&gt; &gt;<br>
&gt;&gt; &gt; &quot;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; (notice the -n at the beginning)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; This -n is the one that is in the first echo: echo -n &quot;#define REVISION_STRING \&quot;$URL $COMMIT &quot; &gt; vmVersionInfo.h<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; What is weird is that script works in Lion....<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; So, any workaround that could work in all OS?<br>
&gt;&gt; &gt;<br>
&gt;&gt; what shell you using?<br>
&gt;&gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Mariano<br>
&gt;&gt; &gt; <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Best regards,<br>
&gt;&gt; Igor Stasenko.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Mariano<br>
&gt; <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
&gt;<br>
&gt;<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>