summaryrefslogtreecommitdiffstats
path: root/audio/ardour/doinst.sh
diff options
context:
space:
mode:
author Heinz Wiesinger <pprkut@slackbuilds.org>2010-05-11 20:30:44 +0200
committer Heinz Wiesinger <pprkut@slackbuilds.org>2010-05-11 20:30:44 +0200
commit019f5a1dde618b3afa1584c356db50b1cfa1a636 (patch)
tree802c05ee9823242edbedbe5d409f1ec7fe0de7f2 /audio/ardour/doinst.sh
parent6c1f4e52023b81e6dbdfa0dabc47ddbd04844ba1 (diff)
downloadslackbuilds-019f5a1dde618b3afa1584c356db50b1cfa1a636.tar.gz
slackbuilds-019f5a1dde618b3afa1584c356db50b1cfa1a636.tar.xz
audio/ardour: Moved from multimedia
Diffstat (limited to 'audio/ardour/doinst.sh')
-rw-r--r--audio/ardour/doinst.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/audio/ardour/doinst.sh b/audio/ardour/doinst.sh
new file mode 100644
index 0000000000..0743536eb4
--- /dev/null
+++ b/audio/ardour/doinst.sh
@@ -0,0 +1,27 @@
+#!/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...
+}
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database 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
+fi
+
+if [ -x /usr/bin/gtk-update-icon-cache ] \
+ && [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+fi