summaryrefslogtreecommitdiff
path: root/multimedia/MPlayer/doinst.sh
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-11 15:00:24 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-11 15:00:24 +0200
commit2fca01658b61754e223d265905022fd2e9d26597 (patch)
tree8b4073173719cb70dcca492752ff4f79b5e974a8 /multimedia/MPlayer/doinst.sh
parent52a1b2b0ea40c71ddf6b029dbb39433c2a2d44b8 (diff)
downloadslackbuilds-2fca01658b61754e223d265905022fd2e9d26597.tar.gz
multimedia/MPlayer: Initial import
Diffstat (limited to 'multimedia/MPlayer/doinst.sh')
-rw-r--r--multimedia/MPlayer/doinst.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/multimedia/MPlayer/doinst.sh b/multimedia/MPlayer/doinst.sh
new file mode 100644
index 0000000000..b5c23d46e2
--- /dev/null
+++ b/multimedia/MPlayer/doinst.sh
@@ -0,0 +1,20 @@
+
+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/mplayer/mplayer.conf.new
+
+if [ -x usr/bin/update-desktop-database ]; then
+ usr/bin/update-desktop-database -q usr/share/applications
+fi
+