<p>We should merge this soon as the time slot to the next release is again getting smaller.</p>

<p>I noticed we need even more packages in order to be able to run Geany from the created GTK bundle:</p>

<p>For GTK2 and GTK3:<br>
pixman<br>
gdk-pixbuf2</p>

<p>And for GTK3 additionally:<br>
libepoxy</p>

<p>Not sure why we didn't need or notice these ones last time, maybe they are new dependencies due to changed builds or versions or whatever.</p>

<p>Furthermore, I changed the script slightly to operate more explicitly when moving the extracted package contents:</p>

<div class="highlight highlight-source-diff"><pre><span class="pl-mdr">@@ -109,9 +115,14 @@</span>

 if [ -d mingw32 ]; then
        for d in bin etc include lib locale share; do
<span class="pl-md">-               rm -rf $d</span>
<span class="pl-md">-               mv mingw32/$d .</span>
<span class="pl-mi1">+               if [ -d "mingw32/$d" ]; then</span>
<span class="pl-mi1">+                       rm -rf $d</span>
<span class="pl-mi1">+                       mv mingw32/$d .</span>
<span class="pl-mi1">+               fi</span>
        done
<span class="pl-mi1">+       rm -rf mingw32/var/cache/fontconfig</span>
<span class="pl-mi1">+       rmdir mingw32/var/cache</span>
<span class="pl-mi1">+       rmdir mingw32/var</span>
        rmdir mingw32
 fi</pre></div>

<p>The first part is just checking whether the subdirectories (etc include lib locale share) actually exist before trying to <code>mv</code> and <code>rm</code> them. This prevents unnecessary error messages like for <code>locale</code> which doesn't seem to exist on the top-level, at least in my tests.</p>

<p>The second part is to remove the <code>mingw32/var/cache/fontconfig</code> directory which gets created but we don't need, I guess. I used multiple <code>rmdir</code>s on purpose here instead of a simple <code>rm -rf</code> to explicitly trigger an error and leave any other unexpected contents there in case they are important and would get lost unseen otherwise.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/560#issuecomment-166170993">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ4JLAvBtCzEmaBMC8rfVEkpTKLO-ks5pR0xagaJpZM4FWtUm.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/560#issuecomment-166170993"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>