mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
build.sh: Check for lrelease-qt5 (#1396)
On Fedora 29, lrelease is named lrelease-qt5.
This commit is contained in:
parent
5bde1c3e8c
commit
b3e27f713b
19
build.sh
19
build.sh
@ -10,9 +10,6 @@ BUILD="build"
|
|||||||
QMAKE_CONF=""
|
QMAKE_CONF=""
|
||||||
ROOT_DIR=`pwd`
|
ROOT_DIR=`pwd`
|
||||||
|
|
||||||
# Create translations
|
|
||||||
lrelease ./src/Cutter.pro
|
|
||||||
|
|
||||||
check_r2() {
|
check_r2() {
|
||||||
r2 -v >/dev/null 2>&1
|
r2 -v >/dev/null 2>&1
|
||||||
if [ $? = 0 ]; then
|
if [ $? = 0 ]; then
|
||||||
@ -38,6 +35,19 @@ find_qmake() {
|
|||||||
echo "$qmakepath"
|
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() {
|
find_gmake() {
|
||||||
gmakepath=$(which gmake)
|
gmakepath=$(which gmake)
|
||||||
if [ -z "$gmakepath" ]; then
|
if [ -z "$gmakepath" ]; then
|
||||||
@ -72,6 +82,9 @@ else
|
|||||||
echo "Correct radare2 version found, skipping..."
|
echo "Correct radare2 version found, skipping..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Create translations
|
||||||
|
$(find_lrelease) ./src/Cutter.pro
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
mkdir -p "$BUILD"
|
mkdir -p "$BUILD"
|
||||||
cd "$BUILD" || exit 1
|
cd "$BUILD" || exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user