mirror of
https://git.freebsd.org/ports.git
synced 2025-07-05 11:29:15 -04:00
- Binaries are now installed in a subdirectory (libexec/sdlmess). - The wrapper script addtional output was removed (problematic for programs which parse the output). Submitted by: nikow <madleser@gmx.de> (private e-mail)
16 lines
464 B
Bash
16 lines
464 B
Bash
#!/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
|
|
# ~/.sdlmess, and create symlinks to the data files.
|
|
#
|
|
|
|
if [ ! -d ~/.sdlmess ]
|
|
then
|
|
cd %%DATADIR%% || exit 1
|
|
find * -type d -exec mkdir -p ~/.sdlmess/{} \;
|
|
find * -type f -exec ln -s %%DATADIR%%/{} ~/.sdlmess/{} \; 2>/dev/null
|
|
fi
|
|
|
|
cd ~/.sdlmess || exit 1
|
|
exec %%PREFIX%%/libexec/sdlmess/mess "$@"
|