1c4abee2f9
- Fix wrapper script not correctly creating ~/.doomlegacy [1]. - Fix building with GCC 4.2 and remove BROKEN on FreeBSD 7.x. - Take maintainership. PR: ports/113184 Submitted by: Georgi Georgiev <roots_bg@yahoo.com> [1]
20 lines
547 B
Bash
20 lines
547 B
Bash
#!/bin/sh
|
|
|
|
# The executable needs to run from a directory with the Doom Legacy data
|
|
# files, libraries and executables. So we mirror the Doom Legacy data
|
|
# directory to ~/.doomlegacy, and create symlinks to the data files.
|
|
|
|
DOOMWADDIR="%%DMDIR%%"; export DOOMWADDIR
|
|
|
|
if [ -d ~/.doomlegacy ]
|
|
then
|
|
echo "Using existing ~/.doomlegacy directory."
|
|
else
|
|
echo "Creating ~/.doomlegacy directory."
|
|
cd %%DATADIR%% || exit 1
|
|
mkdir -p ~/.doomlegacy
|
|
ln -s %%DATADIR%%/* ~/.doomlegacy
|
|
fi
|
|
|
|
cd ~/.doomlegacy || exit 1
|
|
exec ./lsdldoom -nocheckwadversion "$@"
|