Skip to content
Permalink
Browse files

new script to check all parts of an installation

also stripped assaultcube.sh, server.sh and install_or_remove_menuitem.sh
of unnecessary or just wrong stuff

added script to generate checksum file packages/misc/checksums_md5.txt,
which is used by check_install.sh to look for missing and modified files
  • Loading branch information...
ac-stef committed Jan 18, 2015
1 parent 0d74090 commit fdb7dbd2432904af91f6d36ad1d9d774a2562b0d
Showing with 122 additions and 474 deletions.
  1. +1 −0 .gitignore
  2. +8 −40 assaultcube.sh
  3. +66 −249 check_install.sh
  4. +22 −164 install_or_remove_menuitem.sh
  5. +8 −21 server.sh
  6. +14 −0 source/dev_tools/generate_md5_checksums.sh
  7. +3 −0 source/package_assaultcube.sh
@@ -9,6 +9,7 @@ config/init.cfg
config/saved.cfg
config/servers.cfg
config/configtemplates.zip
packages/misc/checksums_md5.txt
source/enet/.deps/
source/enet/.libs/
source/enet/Makefile
@@ -3,7 +3,7 @@
# CUBE_DIR should refer to the directory in which AssaultCube is placed.
#CUBE_DIR=~/assaultcube
#CUBE_DIR=/usr/local/assaultcube
#CUBE_DIR=./
#CUBE_DIR=.
CUBE_DIR=$(dirname "$(readlink -f "${0}")")

# CUBE_OPTIONS starts AssaultCube with any command line options you choose.
@@ -49,47 +49,14 @@ then
MACHINE_NAME=
fi

if [ -x "/sbin/ldconfig" ]; then
if [ -z "$(/sbin/ldconfig -p | grep "libX11")" ]; then
echo "To run AssaultCube, please ensure X11 libraries are installed."
exit 1
fi
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 "libSDL_image")" ]; then
echo "To run AssaultCube, please ensure SDL_image 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 "libogg")" ]; then
echo "To run AssaultCube, please ensure ogg libraries are installed."
exit 1
fi
if [ -z "$(/sbin/ldconfig -p | grep "libvorbis")" ]; then
echo "To run AssaultCube, please ensure vorbis libraries are installed."
exit 1
fi
if [ -z "$(/sbin/ldconfig -p | grep "libopenal")" ]; then
echo "To run AssaultCube, please ensure OpenAL-Soft 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
BINARYPATH="${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}client"

if [ -x "${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}client" ]; then
if [ "$1" = "--outputbinarypath" ]; then
echo "${BINARYPATH}"
exit 0
elif [ -x "${BINARYPATH}" ]; then
cd "${CUBE_DIR}"
exec "${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}client" ${CUBE_OPTIONS} "$@"
elif [ -e "${CUBE_DIR}/bin_unix/${SYSTEM_NAME}${MACHINE_NAME}client" ]; then
echo "Insufficient permissons to run AssaultCube."
echo "Please change (chmod) the AssaultCube client in the bin_unix folder to be readable/executable."
exec "${BINARYPATH}" ${CUBE_OPTIONS} "$@"
else
echo "Your platform does not have a pre-compiled AssaultCube client."
echo "Please follow the following steps to build a native client:"
@@ -100,3 +67,4 @@ else
echo "4) If the compile succeeds, return to this directory and re-run this script."
exit 1
fi

0 comments on commit fdb7dbd

Please sign in to comment.
You can’t perform that action at this time.