diff options
author | Marco Cecchetti <mrc.ildp@gmail.com> | 2010-05-13 00:59:38 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:59:38 +0200 |
commit | 1d9eee42439278ab376a28f0f4087c6ce0a6ef95 (patch) | |
tree | 706f115c6de2ab519e303967d1c1cc4d784df422 /multimedia/exaile/doinst.sh | |
parent | 953506dadbfb52745acf9c1f1720f879fe3b5176 (diff) |
multimedia/exaile: Added to 13.0 repository
Diffstat (limited to 'multimedia/exaile/doinst.sh')
-rw-r--r-- | multimedia/exaile/doinst.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/multimedia/exaile/doinst.sh b/multimedia/exaile/doinst.sh new file mode 100644 index 0000000000000..20e51af1ef82a --- /dev/null +++ b/multimedia/exaile/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 etc/xdg/exaile/settings.ini.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + |