From b41380b1cd158b3225d21ef20d6598b8bc864d14 Mon Sep 17 00:00:00 2001 From: Antoine NONYME Date: Thu, 13 May 2010 00:35:20 +0200 Subject: multimedia/xfmedia: Updated for version 0.9.2 --- multimedia/xfmedia/doinst.sh | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'multimedia/xfmedia/doinst.sh') diff --git a/multimedia/xfmedia/doinst.sh b/multimedia/xfmedia/doinst.sh index 6c07a9fbbc..fb57cbf919 100644 --- a/multimedia/xfmedia/doinst.sh +++ b/multimedia/xfmedia/doinst.sh @@ -1,9 +1,25 @@ +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/xfce/xdg/xfmedia/keybindings.rc.new if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi -if [ -x /usr/bin/update-mime-database ]; then - /usr/bin/update-mime-database ./usr/share/mime >/dev/null 2>&1 +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 usr/share/icons/hicolor >/dev/null 2>&1 + fi fi -- cgit v1.2.3