aboutsummaryrefslogtreecommitdiff
path: root/games/sdlmess/doinst.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2010-05-12 23:29:31 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 23:29:31 +0200
commit4c6bc6d15e15588c930ef1e3903851380190a500 (patch)
tree68371814979baa28fc763c42c2ed2d3528beb8f6 /games/sdlmess/doinst.sh
parent569a4304ab3e8d9ae82edd848086ce02e653b404 (diff)
games/sdlmess: Added to 12.2 repository
Diffstat (limited to 'games/sdlmess/doinst.sh')
-rw-r--r--games/sdlmess/doinst.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/games/sdlmess/doinst.sh b/games/sdlmess/doinst.sh
new file mode 100644
index 0000000000000..87f327952be3c
--- /dev/null
+++ b/games/sdlmess/doinst.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/mess.ini.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications
+fi