jasper 59bf6b8399 - update to 20110716
- better save game and data directory handling
- better dist site

from antti harri (MAINTAINER)
2011-07-18 10:57:01 +00:00

19 lines
436 B
Bash
Executable File

#!/bin/sh
#
# Wrapper for running OpenXcom.
# Test case-insensitively and pick the first one.
dir=$(find \
"${HOME}/.openxcom/DATA" \
"${TRUEPREFIX}/share/openxcom/DATA" \
-mindepth 1 -maxdepth 1 -iname "geodata" 2>/dev/null | head -n 1)
dir=${dir%/*/*}
if [ -z "$dir" ]; then
echo "Error: no data available."
echo "Look in ${TRUEPREFIX}/share/doc/pkg-readmes for extra documentation."
exit 1
fi
cd "$dir" && openxcom-bin "$@"