summaryrefslogtreecommitdiff
path: root/audio/freepats/doinst.sh
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2010-05-11 20:30:46 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2010-05-11 20:30:46 +0200
commitd2ebc334c5311f60bc793183f394db46194fef51 (patch)
tree5a34eff8657b61c42fc51126e212ca3e7f335330 /audio/freepats/doinst.sh
parent02789dc1aa869c8718fb3fa1d23d4f380fd0b60b (diff)
downloadslackbuilds-d2ebc334c5311f60bc793183f394db46194fef51.tar.gz
audio/freepats: Moved from multimedia
Diffstat (limited to 'audio/freepats/doinst.sh')
-rw-r--r--audio/freepats/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/audio/freepats/doinst.sh b/audio/freepats/doinst.sh
new file mode 100644
index 0000000000..50188f32f1
--- /dev/null
+++ b/audio/freepats/doinst.sh
@@ -0,0 +1,16 @@
+#!/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...
+}
+
+config etc/timidity/crude.cfg.new
+config etc/timidity/freepats.cfg.new
+