blob: b0da560d34fa5d8de2505aa7179db00416127855 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/bash
# check for dwarffortress user directory
if [[ ! -d ~/.dwarffortress ]] ; then
mkdir -p ~/.dwarffortress/data
ln -s /opt/dwarffortress/raw ~/.dwarffortress/raw
ln -s /opt/dwarffortress/libs ~/.dwarffortress/libs
cp -rn /opt/dwarffortress/data/init ~/.dwarffortress/data/init
for link in announcement art dipscript help index initial_movies movies shader.fs shader.vs sound speech ; do
cp -r /opt/dwarffortress/data/$link ~/.dwarffortress/data/$link
done
fi
# check for dfhack user directory
if [[ ! -d ~/.dwarffortress/hack ]] ; then
ln -s /opt/dwarffortress/dfhack ~/.dwarffortress/dfhack
ln -s /opt/dwarffortress/dfhack-run ~/.dwarffortress/dfhack-run
ln -s /opt/dwarffortress/blueprints ~/.dwarffortress/blueprints
ln -s /opt/dwarffortress/hack ~/.dwarffortress/hack
ln -s /opt/dwarffortress/stonesense ~/.dwarffortress/stonesense
cp -r /opt/dwarffortress/dfhack-config ~/.dwarffortress/dfhack-config
fi
# workaround for bug in Debian/Ubuntu SDL patch
export SDL_DISABLE_LOCK_KEYS=1
cd ~/.dwarffortress
exec ./dfhack "$@"
|