diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 22:54:35 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:54:35 +0200 |
commit | e5b2e630b1952c4202e89385fdbaefd4ba45a9dc (patch) | |
tree | 5f1a8267b113d56ff5aa2eb97581eee62c5732f8 /multimedia/smplayer/doinst.sh | |
parent | cae64dd6b6b218b5f4f8dd4b39a0f7433a6cebcb (diff) | |
download | slackbuilds-e5b2e630b1952c4202e89385fdbaefd4ba45a9dc.tar.gz |
multimedia/smplayer: Added to 12.1 repository
Diffstat (limited to 'multimedia/smplayer/doinst.sh')
-rw-r--r-- | multimedia/smplayer/doinst.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/multimedia/smplayer/doinst.sh b/multimedia/smplayer/doinst.sh new file mode 100644 index 0000000000..a05c78f507 --- /dev/null +++ b/multimedia/smplayer/doinst.sh @@ -0,0 +1,21 @@ +#!/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/smplayer/input.conf.new + +if [ -x /usr/bin/update-desktop-database ]; then + ./usr/bin/update-desktop-database -q usr/share/applications +fi + |