|
@@ -7,26 +7,20 @@ cd $cwd
|
|
|
|
|
|
function checkinstalled {
|
|
function checkinstalled {
|
|
if [ "$1" != "" ]; then
|
|
if [ "$1" != "" ]; then
|
|
- I=$(which "$1")
|
|
|
|
- if [ -f "$I" ]; then
|
|
|
|
|
|
+ woot=$(which "$1" 2> /dev/null)
|
|
|
|
+ if [ -f "$woot" ]; then
|
|
echo 1
|
|
echo 1
|
|
else
|
|
else
|
|
echo 0
|
|
echo 0
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
}
|
|
}
|
|
-
|
|
|
|
-software="git make cc realpath lua screen"
|
|
|
|
-
|
|
|
|
-for s in $software; do
|
|
|
|
-
|
|
|
|
- if [ ! $(checkinstalled "$s") ]; then
|
|
|
|
- echo "'$s' not found on your system. Please have a system administrator install it!"
|
|
|
|
- return 0
|
|
|
|
- fi
|
|
|
|
-done
|
|
|
|
|
|
|
|
echo "Before continuing, make sure you have the following installed:"
|
|
echo "Before continuing, make sure you have the following installed:"
|
|
|
|
+echo "* git"
|
|
|
|
+echo "* make"
|
|
|
|
+echo "* cc"
|
|
|
|
+echo "* screen"
|
|
echo "* Lua 5.1, only 5.1!, dev headers"
|
|
echo "* Lua 5.1, only 5.1!, dev headers"
|
|
echo "* libz, also known as zlib"
|
|
echo "* libz, also known as zlib"
|
|
echo
|
|
echo
|
|
@@ -35,6 +29,18 @@ echo
|
|
read
|
|
read
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+software="git make cc realpath lua screen"
|
|
|
|
+for soft in $software; do
|
|
|
|
+
|
|
|
|
+ see=$(checkinstalled "$soft")
|
|
|
|
+ if [ $see -eq 0 ]; then
|
|
|
|
+ echo "'$soft' not found on your system. Please have a system administrator install it!"
|
|
|
|
+ exit
|
|
|
|
+ fi
|
|
|
|
+done
|
|
|
|
+
|
|
|
|
+
|
|
repo[1]="q2admin"
|
|
repo[1]="q2admin"
|
|
url[1]="https://github.com/hifi/q2admin.git"
|
|
url[1]="https://github.com/hifi/q2admin.git"
|
|
makeit[1]="make clean && make"
|
|
makeit[1]="make clean && make"
|
|
@@ -104,7 +110,7 @@ for idx in ${!repo[*]}; do
|
|
echo
|
|
echo
|
|
echo "Then start this script again."
|
|
echo "Then start this script again."
|
|
echo
|
|
echo
|
|
- return 0
|
|
|
|
|
|
+ exit
|
|
fi
|
|
fi
|
|
;;
|
|
;;
|
|
q2a_mvd)
|
|
q2a_mvd)
|