3 find . \
( -iname '*.dll' -or -iname '*.exe' \
) | \
4 while IFS
= read -r build_bin
;
6 build_bin_name
="${build_bin##*/}"
7 installed_bin
=$
(find ${MESON_INSTALL_DESTDIR_PREFIX} -iname "$build_bin_name")
8 if [ x
"$installed_bin" != "x" ]; then
9 install_dir
=$
(dirname ${installed_bin})
10 pdb_debug
=$
(echo $build_bin|
sed 's/\.\(dll\|exe\)$/.pdb/')
11 if [ -f "$pdb_debug" ]; then
12 # Note: meson hides script outputs anyway on success. But this can be
13 # useful when debugging.
14 echo Installing
$pdb_debug to
$install_dir
15 if [ -z "$MESON_INSTALL_DRY_RUN" ]; then
16 cp -f $pdb_debug $install_dir