summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Strogin <stefan.strogin@gmail.com>2019-01-18 00:17:28 +0200
committerAaron Bauman <bman@gentoo.org>2019-02-09 22:18:21 -0500
commit26d81c98d89ae5875cba71a8b8bccee40f879f16 (patch)
tree920cedfdaea8b940e2778344025397ed38ccf0d6 /games-roguelike/tomenet/files/tomenet-wrapper
parentgames-roguelike/tomenet: version bump to 4.7.2 (diff)
downloadgentoo-26d81c98d89ae5875cba71a8b8bccee40f879f16.tar.gz
gentoo-26d81c98d89ae5875cba71a8b8bccee40f879f16.tar.bz2
gentoo-26d81c98d89ae5875cba71a8b8bccee40f879f16.zip
games-roguelike/tomenet: drop games eclass, EAPI=6
Let tomenet-wrapper check symlinks in ~/.tomenet/. Recreate them if they target to nowhere (e.g. /usr/share/games/tomenet/...). Package-Manager: Portage-2.3.56, Repoman-2.3.12 Signed-off-by: Stefan Strogin <stefan.strogin@gmail.com> Signed-off-by: Aaron Bauman <bman@gentoo.org>
Diffstat (limited to 'games-roguelike/tomenet/files/tomenet-wrapper')
-rw-r--r--games-roguelike/tomenet/files/tomenet-wrapper6
1 files changed, 3 insertions, 3 deletions
diff --git a/games-roguelike/tomenet/files/tomenet-wrapper b/games-roguelike/tomenet/files/tomenet-wrapper
index 2ca29b862176..71abcb79cf25 100644
--- a/games-roguelike/tomenet/files/tomenet-wrapper
+++ b/games-roguelike/tomenet/files/tomenet-wrapper
@@ -1,11 +1,11 @@
#!/bin/sh
-if [ ! -e ~/.tomenet/.gentoo ]; then
+if [ ! -e ~/.tomenet/.gentoo ] || [ ! -e ~/.tomenet/game ] || [ ! -e ~/.tomenet/text ] ; then
LIBDIR="@LIBDIR@"
[ -e ~/.tomenet ] || mkdir ~/.tomenet
- ln -s "${LIBDIR}"/game ~/.tomenet/game
- ln -s "${LIBDIR}"/text ~/.tomenet/text
+ [ -e ~/.tomenet/game ] || ln -sf "${LIBDIR}"/game ~/.tomenet/game
+ [ -e ~/.tomenet/text ] || ln -sf "${LIBDIR}"/text ~/.tomenet/text
cp -R "${LIBDIR}"/user "${LIBDIR}"/scpt "${LIBDIR}"/xtra ~/.tomenet/
[ -e ~/.tomenetrc ] || cp "${LIBDIR}"/.tomenetrc ~/.tomenetrc