summaryrefslogtreecommitdiff
path: root/libraries/barry/doinst.sh
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-18 09:03:46 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-18 09:03:46 -0500
commitd638db3db5f6e19c82f2b8185e647d38408a839b (patch)
treee4018975e5c0dfaf77c065b5aed31da603af7053 /libraries/barry/doinst.sh
parent66566142a06fc6af039ed854d6b3c44194c46948 (diff)
downloadslackbuilds-d638db3db5f6e19c82f2b8185e647d38408a839b.tar.gz
libraries/barry: Updated for version 0.16.
Diffstat (limited to 'libraries/barry/doinst.sh')
-rw-r--r--libraries/barry/doinst.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/libraries/barry/doinst.sh b/libraries/barry/doinst.sh
new file mode 100644
index 0000000000..4fbe19818e
--- /dev/null
+++ b/libraries/barry/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/modprobe.d/barry.conf.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+