diff options
author | pomfland <pomfland@tfwno.gf> | 2018-09-21 22:16:01 +0100 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2018-09-21 22:16:01 +0100 |
commit | 0b5f135aa8437538afd759304b08009cefe9ad20 (patch) | |
tree | 72d2ec3b459f43b65b0d2fa5d9e09c2d76c858ae /games/xlennart/doinst.sh | |
parent | 556f1589c5e9b52fab6e33584ff6a895a315a235 (diff) |
games/xlennart: Updated for version 1.1.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/xlennart/doinst.sh')
-rw-r--r-- | games/xlennart/doinst.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/games/xlennart/doinst.sh b/games/xlennart/doinst.sh new file mode 100644 index 0000000000000..1035dae1265af --- /dev/null +++ b/games/xlennart/doinst.sh @@ -0,0 +1,17 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + +NEW="var/games/xlennart.scores.new" +OLD="$(dirname $NEW)/$(basename $NEW .new)" +if [ -r $NEW ] && [ ! -r $OLD ]; then + mv $NEW $OLD +else + rm -f $NEW +fi |