From d2ebc334c5311f60bc793183f394db46194fef51 Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Tue, 11 May 2010 20:30:46 +0200 Subject: audio/freepats: Moved from multimedia --- audio/freepats/doinst.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 audio/freepats/doinst.sh (limited to 'audio/freepats/doinst.sh') 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 + -- cgit v1.2.3