Fixed localization conversion script for environments without Bash. Thanks Russell

FossilOrigin-Name: 9a06e230f398a3c93247382ba8f37d29201268f8
This commit is contained in:
kostas
2015-05-29 20:26:33 +00:00
parent fab3c0bf42
commit e71c3750cb
3 changed files with 13 additions and 11 deletions

View File

@ -1,12 +1,14 @@
#!/bin/bash
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
#!/bin/sh
SCRIPTDIR="$( cd "$( dirname "$0" )" && pwd )"
PRJDIR=$SCRIPTDIR/..
INTLDIR=$SCRIPTDIR
# Detect lrelease tool
if hash lrelease-qt5 2>/dev/null; then
if which lrelease-qt5 2>/dev/null; then
LRELEASE="lrelease-qt5"
elif hash lrelease 2>/dev/null; then
elif which lrelease4 2>/dev/null; then
LRELEASE="lrelease4"
elif which lrelease 2>/dev/null; then
LRELEASE="lrelease"
else
echo "lrelease not found"