build.sh: Check for lrelease-qt5 (#1396)

On Fedora 29, lrelease is named lrelease-qt5.
This commit is contained in:
Andrew D'Addesio 2019-03-27 03:16:48 -05:00 committed by xarkes
parent 5bde1c3e8c
commit b3e27f713b

View File

@ -10,9 +10,6 @@ BUILD="build"
QMAKE_CONF=""
ROOT_DIR=`pwd`
# Create translations
lrelease ./src/Cutter.pro
check_r2() {
r2 -v >/dev/null 2>&1
if [ $? = 0 ]; then
@ -38,6 +35,19 @@ find_qmake() {
echo "$qmakepath"
}
find_lrelease() {
lreleasepath=$(which lrelease-qt5)
if [ -z "$lreleasepath" ]; then
lreleasepath=$(which lrelease)
fi
if [ -z "$lreleasepath" ]; then
echo "You need lrelease to build Cutter."
echo "Please make sure lrelease is in your PATH environment variable."
exit 1
fi
echo "$lreleasepath"
}
find_gmake() {
gmakepath=$(which gmake)
if [ -z "$gmakepath" ]; then
@ -72,6 +82,9 @@ else
echo "Correct radare2 version found, skipping..."
fi
# Create translations
$(find_lrelease) ./src/Cutter.pro
# Build
mkdir -p "$BUILD"
cd "$BUILD" || exit 1