Sorry, I don'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 "*.ui" | sed 's,.\/,,'`( is no V is \+/ without space) the previous command don't have a recurrent action and therefore the Xcode build system will produce an error.<br>
Also the UIUI=`find . -type f -name "*.ui" | sed 's,.\/,,'` is not the only change in the script, the line after the "do" is changed by:<br>uh=`echo $u | sed 's,[^:]*\/,,' | sed 's,\.ui$,.h,'`<br>
it'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't have a recurrent action, maybe with some option.<br>
<br><div class="gmail_quote">2010/1/26 William Kyngesburye <span dir="ltr"><<a href="mailto:woklist@kyngchaos.com">woklist@kyngchaos.com</a>></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>
> Hi, I have worked over a year to understand the QGIS development and now I try to contribute.<br>
> The subject is:<br>
> 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>
> Let's see the old script:<br>
> ------------------------------------------------------------------<br>
<br>
</div>> UIUI=`ls *.ui`<br>
<div class="im"><br>
> ------------------------------------------------------------------<br>
><br>
> and now take a look to my new script<br>
><br>
> ------------------------------------------------------------------<br>
<br>
</div><div class="im">> UIUI=`find . -type f -name "*.ui" | sed 's,.\/,,'`<br>
<br>
</div><div class="im">> ------------------------------------------------------------------<br>
> I decided to use the find function and not the ls.<br>
> 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't accidentally get a MacPorts or Fink ls, which may behave differently than expected.<br>
<br>
<br>
</blockquote></div><br>