mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
2aea708a44
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
21 lines
414 B
Bash
21 lines
414 B
Bash
#!/bin/sh
|
|
|
|
# 20160812 bkw:
|
|
# wrapper script for sdlpop, for slackbuilds.org
|
|
|
|
EXE=/usr/libexec/sdlpop/prince
|
|
USERDIR=$HOME/.sdlpop
|
|
SHAREDIR=/usr/share/games/sdlpop
|
|
INI=SDLPoP.ini
|
|
|
|
[ ! -e $USERDIR ] && mkdir -p $USERDIR
|
|
cd $USERDIR || exit 1
|
|
|
|
for file in $SHAREDIR/*; do
|
|
base="$( basename "$file" )"
|
|
[ -e "$base" ] || ln -s "$file" "$base"
|
|
done
|
|
|
|
[ -L $INI ] && ( rm -f $INI ; cp $SHAREDIR/$INI . )
|
|
|
|
exec $EXE "$@"
|