diff options
Diffstat (limited to 'games/galaxyhack/files/galaxyhack-sh.in')
-rw-r--r-- | games/galaxyhack/files/galaxyhack-sh.in | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/games/galaxyhack/files/galaxyhack-sh.in b/games/galaxyhack/files/galaxyhack-sh.in deleted file mode 100644 index 930b2551a4ab..000000000000 --- a/games/galaxyhack/files/galaxyhack-sh.in +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -# The executable needs to be run from its data directory, and needs to store -# configuration in it. We therefore mirror the data directory hierarchy in -# ~/.galaxyhack, and create symlinks to the data files, but the configuration -# file is copied, and write permission for the user is added to it. - -if [ -d ~/.galaxyhack ] -then - echo "Using existing ~/.galaxyhack directory." -else - echo "Creating ~/.galaxyhack directory." - cd %%DATADIR%% || exit 1 - find * -type d -exec mkdir -p ~/.galaxyhack/{} \; - cp settings.dat ~/.galaxyhack && chmod u+w ~/.galaxyhack/settings.dat - find * -type f -exec ln -s %%DATADIR%%/{} ~/.galaxyhack/{} \; 2>/dev/null -fi - -cd ~/.galaxyhack || exit 1 -exec %%PREFIX%%/libexec/galaxyhack "$@" |