aboutsummaryrefslogtreecommitdiff
path: root/games/epsxe/doinst.sh
diff options
context:
space:
mode:
authorsoyalexman <soyalexman@soyalexman.com>2010-05-12 23:29:18 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:29:18 +0200
commita9e3b54f5f88271deaf586a1a736955a3bb33dde (patch)
tree2394cb9449f55eb85f550d15b3852c9a72ac8122 /games/epsxe/doinst.sh
parente1ea50212b57c7c82e455548ea70fa2455259658 (diff)
games/epsxe: Added to 12.2 repository
Diffstat (limited to 'games/epsxe/doinst.sh')
-rw-r--r--games/epsxe/doinst.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/games/epsxe/doinst.sh b/games/epsxe/doinst.sh
new file mode 100644
index 0000000000000..8dbf8e2b062ed
--- /dev/null
+++ b/games/epsxe/doinst.sh
@@ -0,0 +1,19 @@
+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 var/games/epsxe/.epsxerc.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+