Shell file checks for required libraries and warns if not installed. Please revert if it's not helpful -- RK.

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7627 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
RandumKiwi
2013-11-02 23:16:10 +00:00
parent 8335b5180e
commit 65f9bf5dfb
2 changed files with 20 additions and 3 deletions
+19 -2
View File
@@ -50,10 +50,27 @@ then
MACHINE_NAME=
fi
if [ -x "${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}server" ]
then
if [ -x "/sbin/ldconfig" ]; then
if [ -z "$(/sbin/ldconfig -p | grep "libSDL-1.2")" ]; then
echo "To run AssaultCube, please ensure SDL v1.2 libraries are installed."
exit 1
fi
if [ -z "$(/sbin/ldconfig -p | grep "libz")" ]; then
echo "To run AssaultCube, please ensure z libraries are installed."
exit 1
fi
if [ -z "$(/sbin/ldconfig -p | grep "libcurl")" ]; then
echo "To run AssaultCube, please ensure Curl libraries are installed."
exit 1
fi
fi
if [ -x "${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}server" ]; then
cd "${CUBE_DIR}"
exec "${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}server" "${CUBE_OPTIONS}" "${CUBE_OPTIONFILE}" "$@"
elif [ -e "${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}server" ]
echo "Insufficient permissons to run AssaultCube."
echo "Please change (chmod) the AssaultCube server in the bin_unix folder to be readable/executable."
else
echo "Your platform does not have a pre-compiled AssaultCube server."
echo "Please follow the following steps to build a native client:"