summarylogtreecommitdiffstats
path: root/arcane_fortune
diff options
context:
space:
mode:
authorWorMzy Tykashi2020-10-03 23:32:06 +0100
committerWorMzy Tykashi2020-10-03 23:33:11 +0100
commitfe8dee8e4462657337decf51da7efe260343b121 (patch)
tree5dc51308db102ccd7fd743857b40acd7c5eb71b4 /arcane_fortune
parent837f182a2584e90ceede88d6b7035856fc4d6566 (diff)
downloadaur-fe8dee8e4462657337decf51da7efe260343b121.tar.gz
Upadted to 0.2.0. Switch to source build
Diffstat (limited to 'arcane_fortune')
-rw-r--r--arcane_fortune25
1 files changed, 16 insertions, 9 deletions
diff --git a/arcane_fortune b/arcane_fortune
index 82027aa6a8cf..7529d56454ef 100644
--- a/arcane_fortune
+++ b/arcane_fortune
@@ -1,15 +1,22 @@
#!/bin/sh
+# Running this script with --ncurses will start the game in the current terminal.
-# Game has limited knowledge of terms, "xterm", "xterm-256color" and "linux" should be safe
-#export TERM=linux
pkgname=arcanefortune
-if [[ ! -d "${HOME}/.${pkgname}" ]]; then
- mkdir -p "${HOME}/.${pkgname}/saves"
- ln -s /opt/"${pkgname}"/nn "${HOME}/.${pkgname}/nn"
- ln -s /opt/"${pkgname}"/arcane_fortune "${HOME}/.${pkgname}/arcane_fortune"
- cp -rn /opt/"${pkgname}"/config "${HOME}/.${pkgname}/config"
+if [ ! -d "${HOME}/.${pkgname}" ]; then
+ mkdir -p "${HOME}/.${pkgname}/game"
+ mkdir -p "${HOME}/.${pkgname}/game/saves"
+ for f in nn arcane_fortune_linux arcane_fortune_linux_ncurses icon.ico; do
+ ln -s "/opt/${pkgname}/game/$f" "${HOME}/.${pkgname}/game/$f"
+ done
+ cp -rn "/opt/${pkgname}/game/fonts" "${HOME}/.${pkgname}/game/fonts"
+ cp -rn "/opt/${pkgname}/game/config" "${HOME}/.${pkgname}/game/config"
fi
-cd "${HOME}/.${pkgname}"
-exec ./arcane_fortune "${@}"
+cd "${HOME}/.${pkgname}/game"
+if [ "$1" = "--ncurses" ]; then
+ shift
+ exec ./arcane_fortune_linux_ncurses "${@}"
+else
+ exec ./arcane_fortune_linux "${@}"
+fi