Enhance lupdate-qt5 check

This commit is contained in:
Janek Bevendorff 2017-10-17 14:54:11 +02:00
parent eb977b8021
commit d3208bddb0

View File

@ -289,11 +289,16 @@ checkTransifexCommandExists() {
if [ 0 -ne $? ]; then if [ 0 -ne $? ]; then
exitError "Transifex tool 'tx' not installed! Please install it using 'pip install transifex-client'" exitError "Transifex tool 'tx' not installed! Please install it using 'pip install transifex-client'"
fi fi
}
checkQt5LUpdateExists() {
command -v lupdate > /dev/null
if [ 0 -eq $? ] && ! $(lupdate -version | grep -q "lupdate version 5\."); then
command -v lupdate-qt5 > /dev/null command -v lupdate-qt5 > /dev/null
if [ 0 -ne $? ]; then if [ 0 -ne $? ]; then
exitError "Qt Linguist tool (lupdate-qt5) is not installed! Please install using 'apt install qttools5-dev-tools'" exitError "Qt Linguist tool (lupdate-qt5) is not installed! Please install using 'apt install qttools5-dev-tools'"
fi fi
fi
} }
performChecks() { performChecks() {
@ -307,6 +312,7 @@ performChecks() {
logInfo "Validating toolset and repository..." logInfo "Validating toolset and repository..."
checkTransifexCommandExists checkTransifexCommandExists
checkQt5LUpdateExists
checkGitRepository checkGitRepository
checkReleaseDoesNotExist checkReleaseDoesNotExist
checkWorkingTreeClean checkWorkingTreeClean