summaryrefslogtreecommitdiff
path: root/audio/mpdscribble/doinst.sh
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-12 17:37:13 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:37:13 +0200
commitffa5085cc2ab25a9ee1f4bfe947c9f06c1e7df41 (patch)
treecb578600e1b824a0105bb8d9f8e69ee04648d51a /audio/mpdscribble/doinst.sh
parent36116968c059a7b3a2b9359c30dfede1dcfb5e1b (diff)
downloadslackbuilds-ffa5085cc2ab25a9ee1f4bfe947c9f06c1e7df41.tar.gz
audio/mpdscribble: Updated for version 0.17
Diffstat (limited to 'audio/mpdscribble/doinst.sh')
-rw-r--r--audio/mpdscribble/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/mpdscribble/doinst.sh b/audio/mpdscribble/doinst.sh
new file mode 100644
index 0000000000..a07f26ade6
--- /dev/null
+++ b/audio/mpdscribble/doinst.sh
@@ -0,0 +1,15 @@
+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/mpdscribble.conf.new
+