diff options
author | Stefan Strogin <stefan.strogin@gmail.com> | 2019-01-18 00:17:28 +0200 |
---|---|---|
committer | Aaron Bauman <bman@gentoo.org> | 2019-02-09 22:18:21 -0500 |
commit | 26d81c98d89ae5875cba71a8b8bccee40f879f16 (patch) | |
tree | 920cedfdaea8b940e2778344025397ed38ccf0d6 /games-roguelike/tomenet/files/tomenet-wrapper | |
parent | games-roguelike/tomenet: version bump to 4.7.2 (diff) | |
download | gentoo-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-wrapper | 6 |
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 |