|
@@ -48,12 +48,21 @@ if [ "$INSTALL" == "1" ]; then
|
|
|
qmake
|
|
|
make
|
|
|
|
|
|
- LD_LIBRARY_PATH=$LIBPATH ./cimsqwbot &
|
|
|
- PID=$!
|
|
|
- echo PID $PID
|
|
|
-
|
|
|
- sleep 1
|
|
|
- kill $PID
|
|
|
+ if [ -f "./cimsqwbot" ]; then
|
|
|
+ LD_LIBRARY_PATH=$LIBPATH ./cimsqwbot &
|
|
|
+ PID=$!
|
|
|
+ echo PID $PID
|
|
|
+
|
|
|
+ sleep 1
|
|
|
+ kill $PID
|
|
|
+ else
|
|
|
+ echo
|
|
|
+ echo "It seems there have been problems compiling this thing! The binary ./cimsqwbot is missing."
|
|
|
+ echo "This is awkward. Probably some dependency was missing or had a wrong version while compilation."
|
|
|
+ echo "Better go have a chat to the devs at irc://quakenet.org/qwnet"
|
|
|
+ echo
|
|
|
+ exit
|
|
|
+ fi
|
|
|
|
|
|
# cfg file should have been created by the start of cimsqwbot.
|
|
|
|