freebsd-ports/games/redeclipse/files/sauer_server.in
Jose Alonso Cardenas Marquez f1d840ea79 - Update to 20060722 [2]
- Fix building on 4.x and 7.x. [1]
- Allow building only the client/server part through OPTIONS. [1]
- Fix wrapper scripts: pass parameters to the real executables. [1]
- Respect SDL_CONFIG. [1]
- Clean-up. [1]

PR:		101116
Submitted by:	alepulver [1]
Reviewed by:	me [2]
Approved by:	garga (mentor)
2006-08-14 15:29:20 +00:00

18 lines
576 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
# ~/.sauerbraten, and create symlinks to the data files.
if [ -d ~/.sauerbraten ]
then
echo "Using existing ~/.sauerbraten directory."
else
echo "Creating ~/.sauerbraten directory."
cd %%DATADIR%% || exit 1
find * -type d -exec mkdir -p ~/.sauerbraten/{} \;
find * -type f -exec ln -s %%DATADIR%%/{} ~/.sauerbraten/{} \; 2>/dev/null
fi
cd ~/.sauerbraten || exit 1
exec %%PREFIX%%/libexec/sauer_server "$@"