mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-31 00:35:05 +00:00
build.sh: Check for qmake-qt5 (#434)
This commit is contained in:
parent
ec8d54b597
commit
b2c52a9aee
9
build.sh
9
build.sh
@ -21,8 +21,11 @@ if [ $? = 0 ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if qmake is available
|
# Check if either qmake or qmake-qt5 is available
|
||||||
qmakepath=$(which qmake)
|
qmakepath=$(which qmake-qt5)
|
||||||
|
if [ -z "$qmakepath" ]; then
|
||||||
|
qmakepath=$(which qmake)
|
||||||
|
fi
|
||||||
if [ -z "$qmakepath" ]; then
|
if [ -z "$qmakepath" ]; then
|
||||||
echo "You need qmake to build Cutter."
|
echo "You need qmake to build Cutter."
|
||||||
echo "Please make sure qmake is in your PATH environment variable."
|
echo "Please make sure qmake is in your PATH environment variable."
|
||||||
@ -50,7 +53,7 @@ fi
|
|||||||
# Build
|
# Build
|
||||||
mkdir "$BUILD"
|
mkdir "$BUILD"
|
||||||
cd "$BUILD" || exit 1
|
cd "$BUILD" || exit 1
|
||||||
qmake "$QMAKE_CONF" ../src/Cutter.pro
|
"$qmakepath" "$QMAKE_CONF" ../src/Cutter.pro
|
||||||
make -j4
|
make -j4
|
||||||
ERR=$((ERR+$?))
|
ERR=$((ERR+$?))
|
||||||
cd ..
|
cd ..
|
||||||
|
Loading…
Reference in New Issue
Block a user