diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2013-10-27 17:19:27 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-10-27 23:39:05 -0500 |
commit | 8955145d74543cb98796a393309094d66513f8fa (patch) | |
tree | 219e90600545eb6ddf8ed7b0d2c6736f8df76719 /python/python-audiotools/doinst.sh | |
parent | 286f3c828f982058bdc2fa9a4355ba65e6dab738 (diff) |
python/python-audiotools: Added (collection of audio handling programs)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'python/python-audiotools/doinst.sh')
-rw-r--r-- | python/python-audiotools/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/python/python-audiotools/doinst.sh b/python/python-audiotools/doinst.sh new file mode 100644 index 0000000000000..ee19f823a37a7 --- /dev/null +++ b/python/python-audiotools/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/audiotools.cfg.new + |