Skip to content

binary: copy recursive preserves dir struct

Lukas Oberhuber requested to merge lukaso/gtk-mac-bundler:master into master

This change means that binary recursive copies with globs preserve the directory structure rather than flattening it out. This is critical for using this capability in gimp where plugins have moved into sub directories.

Example:

<binary recurse="True">${prefix}/lib/gimp/2.99/plug-ins/*</binary>

Before this change, the copies had to be dealt with with a series of statements like the following:

<binary recurse="True">${prefix}/lib/gimp/2.99/plug-ins/align-layers/*</binary>
<binary recurse="True">${prefix}/lib/gimp/2.99/plug-ins/animation-optimize/*</binary>
<binary recurse="True">${prefix}/lib/gimp/2.99/plug-ins/animation-play/*</binary>
<binary recurse="True">${prefix}/lib/gimp/2.99/plug-ins/blinds/*</binary>
<binary recurse="True">${prefix}/lib/gimp/2.99/plug-ins/border-average/*</binary>
<binary recurse="True">${prefix}/lib/gimp/2.99/plug-ins/busy-dialog/*</binary>
<binary recurse="True">${prefix}/lib/gimp/2.99/plug-ins/checkerboard/*</binary>
<binary recurse="True">${prefix}/lib/gimp/2.99/plug-ins/cml-explorer/*</binary>
...

Merge request reports