24 lines
553 B
Plaintext
24 lines
553 B
Plaintext
$NetBSD$
|
|
|
|
#Move df to homedir and where it looks for x11
|
|
|
|
--- df.orig 2017-11-28 17:40:52.000000000 +0000
|
|
+++ df
|
|
@@ -1,6 +1,14 @@
|
|
#!/bin/sh
|
|
-DF_DIR=$(dirname "$0")
|
|
-cd "${DF_DIR}"
|
|
+
|
|
+if [ ! -f ~/df_linux ]
|
|
+then
|
|
+ echo "Copying..."
|
|
+ cp -r PREFIX/df_linux ~/
|
|
+fi
|
|
+
|
|
+DF_DIR="~/df_linux"
|
|
+cd ~/df_linux
|
|
+export LIBGL_DRIVERS_PATH=${X11BASE}
|
|
export SDL_DISABLE_LOCK_KEYS=1 # Work around for bug in Debian/Ubuntu SDL patch.
|
|
#export SDL_VIDEO_CENTERED=1 # Centre the screen. Messes up resizing.
|
|
./libs/Dwarf_Fortress "$@" # Go, go, go! :)
|