Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / games / sdlpop / prince.sh
blob698c347272a4f8731dccee35acf6dd76bca2d5cf
1 #! @shell@
3 set -euo pipefail
5 mkdir -p ~/.local/share/sdlpop
6 cd ~/.local/share/sdlpop
8 for i in SDLPoP.ini mods; do
9 [ -e $i ] || cp -r @out@/share/sdlpop/$i .
10 done
12 # Create the data symlink or update it (in case it is a symlink, else the user
13 # has probably tinkered with it and does not want it to be recreated).
14 [ ! -e data -o -L data ] && ln -sf @out@/share/sdlpop/data .
16 exec -a "prince" @out@/bin/.prince-bin "$@"