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>mkdir -p "$DERIVED_FILES_DIR"<br><br>cd ../../src/plugins/$TARGET_PLUGINDIR<br><br>UIUI=`ls *.ui`<br><br>for u in $UIUI<br>
do<br> uh=`echo $u | sed 's,\.ui$,.h,'`<br> # compare times because output files spec below doesn't seem to work with wildcards<br> if [ ! -f "$DERIVED_FILES_DIR/ui_$uh" ] || [ $u -nt "$DERIVED_FILES_DIR/ui_$uh" ] ; then<br>
rm -f "$DERIVED_FILES_DIR/ui_$uh"<br> echo "$QTUIC -o \"$DERIVED_FILES_DIR/ui_$uh\" $u"<br> $QTUIC -o "$DERIVED_FILES_DIR/ui_$uh" $u<br> fi<br>done<br><br>exit 0<br>
------------------------------------------------------------------<br><br>and now take a look to my new script<br><br>------------------------------------------------------------------<br>mkdir -p "$DERIVED_FILES_DIR"<br>
<br>cd ../../src/plugins/$TARGET_PLUGINDIR<br><br>UIUI=`find . -type f -name "*.ui" | sed 's,.\/,,'`<br><br>for u in $UIUI<br>do<br> uh=`echo $u | sed 's,[^:]*\/,,' | sed 's,\.ui$,.h,'`<br>
# compare times because output files spec below doesn't seem to work with wildcards<br> if [ ! -f "$DERIVED_FILES_DIR/ui_$uh" ] || [ $u -nt "$DERIVED_FILES_DIR/ui_$uh" ] ; then<br> rm -f "$DERIVED_FILES_DIR/ui_$uh"<br>
echo "$QTUIC -o \"$DERIVED_FILES_DIR/ui_$uh\" $u"<br> $QTUIC -o "$DERIVED_FILES_DIR/ui_$uh" $u<br> fi<br>done<br><br>exit 0<br>------------------------------------------------------------------<br>
I decided to use the find function and not the ls.<br>what you think?<br>