Query lupdate-qt5 first and fall back to lupdate if it does not exist

This commit is contained in:
Janek Bevendorff 2017-07-07 17:43:15 +02:00
parent fab9f2a9fb
commit 8a0085f0f8

View File

@ -40,8 +40,14 @@ cd "${BASEDIR}/../.."
if $UPDATE; then
echo "Updating source files..."
lupdate-qt5 -no-ui-lines -disable-heuristic similartext -locations none -no-obsolete src -ts share/translations/keepassx_en.ts
lupdate-qt5 -no-ui-lines -disable-heuristic similartext -locations none -pluralonly src -ts share/translations/keepassx_en_plurals.ts
LUPDATE=lupdate-qt5
command -v $LUPDATE > /dev/null
if [ $? -ne 0 ]; then
LUPDATE=lupdate
fi
$LUPDATE -no-ui-lines -disable-heuristic similartext -locations none -no-obsolete src -ts share/translations/keepassx_en.ts
$LUPDATE -no-ui-lines -disable-heuristic similartext -locations none -pluralonly src -ts share/translations/keepassx_en_plurals.ts
echo
fi