Sorry, I don&#39;t give a good explanation for the change in the script.<br>Suppose that somebady create a plugin with other subfolders and some of this subfolders having inside files with the extension *.ui, the ouput of the command `ls *.ui` is not the same of the `find . -type f -name &quot;*.ui&quot; | sed &#39;s,.\/,,&#39;`( is no V is  \+/ without space) the previous command don&#39;t have a recurrent action and therefore the Xcode build system will produce an error.<br>
Also the UIUI=`find . -type f -name &quot;*.ui&quot; | sed &#39;s,.\/,,&#39;` is not the only change in the script, the line after the &quot;do&quot; is changed by:<br>uh=`echo $u | sed &#39;s,[^:]*\/,,&#39; | sed &#39;s,\.ui$,.h,&#39;`<br>
it&#39;s necessary for eliminate the path names and leave only the file name changed with the *.h extension.<br>Selecting the good ls command is a possible solution, but I think that the Mac Os X distribution command ls don&#39;t have a recurrent action, maybe with some option.<br>
<br><div class="gmail_quote">2010/1/26 William Kyngesburye <span dir="ltr">&lt;<a href="mailto:woklist@kyngchaos.com">woklist@kyngchaos.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Jan 26, 2010, at 4:59 PM, Aju Ajusito wrote:<br>
<br>
&gt; Hi, I have worked over a year to understand the QGIS development and now I try to contribute.<br>
&gt; The subject is:<br>
&gt; If we want to create a plugin for QGIS with some folders inside for example on FreeBSD is easy but in Mac Os X using Xcode is not same, because the script for compile the plugin is not really good.<br>
&gt; Let&#39;s see the old script:<br>
&gt; ------------------------------------------------------------------<br>
<br>
</div>&gt; UIUI=`ls *.ui`<br>
<div class="im"><br>
&gt; ------------------------------------------------------------------<br>
&gt;<br>
&gt; and now take a look to my new script<br>
&gt;<br>
&gt; ------------------------------------------------------------------<br>
<br>
</div><div class="im">&gt; UIUI=`find . -type f -name &quot;*.ui&quot; | sed &#39;s,.\/,,&#39;`<br>
<br>
</div><div class="im">&gt; ------------------------------------------------------------------<br>
&gt; I decided to use the find function and not the ls.<br>
&gt; what you think?<br>
<br>
</div>Not to be defensive, but what is wrong with ls?  Did you have a problem?  Seems like find + sed is a lot more work.<br>
<br>
One thing I probably should do is hardwire the path to /bin/ls so it doesn&#39;t accidentally get a MacPorts or Fink ls, which may behave differently than expected.<br>
<br>
<br>
</blockquote></div><br>