mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Adjust build.sh error message
This commit is contained in:
parent
c4e8a1c178
commit
00a1f86bba
10
build.sh
10
build.sh
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#### Constants ####
|
#### Constants ####
|
||||||
BUILDR2=1
|
BUILDR2=1
|
||||||
|
ERR=0
|
||||||
|
|
||||||
#### User variables ####
|
#### User variables ####
|
||||||
BUILD="build"
|
BUILD="build"
|
||||||
@ -50,9 +51,14 @@ fi
|
|||||||
mkdir "$BUILD"
|
mkdir "$BUILD"
|
||||||
cd "$BUILD" || exit 1
|
cd "$BUILD" || exit 1
|
||||||
qmake "$QMAKE_CONF" ../src/Cutter.pro
|
qmake "$QMAKE_CONF" ../src/Cutter.pro
|
||||||
make
|
make -j4
|
||||||
|
ERR=$((ERR+$?))
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Done
|
# Done
|
||||||
echo "Build complete. Binary available at: $BUILD/Cutter"
|
if [ ${ERR} -gt 0 ]; then
|
||||||
|
echo "Something went wrong!"
|
||||||
|
else
|
||||||
|
echo "Build complete. Binary available at: $BUILD/Cutter"
|
||||||
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user