freebsd-ports/games/sea-defender/files/sea-defender.sh.in
Dmitry Marakasov 70b129d1ae - Support staging
- Convert USE_GMAKE to USES
- Add DESKTOP_ENTRIES
- Improve wrapper script
2013-10-18 00:54:19 +00:00

12 lines
206 B
Bash

#!/bin/sh
if [ -z "$XDG_CONFIG_HOME" ]; then
XDG_CONFIG_HOME=$HOME/.config
fi
DOTDIR="$XDG_CONFIG_HOME/Sea Defender"
mkdir -p "$DOTDIR"
cd "$DOTDIR" || exit 1
exec %%PREFIX%%/libexec/sea-defender "$@"