PKGBUILDs/devel/generator/templates/fragments/mingw-w64-qt5-executable_suffix.sh.ep
Martchus 313e0a81aa Fix warning in generator
Fixes
```
Use of uninitialized value in concatenation (.) or string at template qt5-tools/mingw-w64/PKGBUILD.sh.ep line 44.
```
2020-09-21 22:30:59 +02:00

13 lines
675 B
Plaintext

% return '' if $static_variant;
# make sure the executables don't conflict with their mingw-qt4 counterpart
for _arch in ${_architectures}; do
for exe_file in "${pkgdir}/usr/${_arch}/bin/"*.exe; do
[[ -f $exe_file ]] && mv "${exe_file}" "${exe_file%.exe}-qt5.exe"
done
% if ($qt_module eq 'tools') {
# Fix the path to executables in cmake config files
sed -i "s|lib/qt/bin/qcollectiongenerator|bin/qcollectiongenerator-qt5.exe|g" "${pkgdir}"/usr/${_arch}/lib/cmake/Qt5Help/Qt5HelpConfigExtras.cmake
sed -i "s|lib/qt/bin/qhelpgenerator|bin/qhelpgenerator-qt5.exe|g" "${pkgdir}"/usr/${_arch}/lib/cmake/Qt5Help/Qt5HelpConfigExtras.cmake
% }
done