#!/bin/sh -e
if [ ! -w . -o "$HOME" = "`/bin/pwd`" ]; then
	mkdir -p "$HOME/.freeciv"
	cd "$HOME/.freeciv"
fi
exec "/usr/lib/freeciv/${0##*/}" "$@"
