Pārlūkot izejas kodu

check pre-requisites

Paul Klumpp 12 gadi atpakaļ
vecāks
revīzija
3f101ccf8a
1 mainītis faili ar 14 papildinājumiem un 0 dzēšanām
  1. 14 0
      is_cimsqwbot.sh

+ 14 - 0
is_cimsqwbot.sh

@@ -1,4 +1,18 @@
 #!/bin/bash
+# vim: expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
+
+
+NEEDS="git qmake make"
+for p in $NEEDS; do
+  TEST=$(which $p 2> /dev/null)
+
+  if [ ! -f "$TEST" ]; then
+    echo "Sorry, you don't seem to have '$p' installed."
+    echo "You need these programs before this script will run: $NEEDS"
+    exit 
+  fi
+done
+
 
 if [ ! -d "libqwclient" ]; then
 	git clone https://github.com/buhnemann/libqwclient.git