diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2010-05-11 20:30:42 +0200 |
---|---|---|
committer | Heinz Wiesinger <pprkut@slackbuilds.org> | 2010-05-11 20:30:42 +0200 |
commit | 5953bc5be2592ce5e491acbe6b0c170ba0f7a42b (patch) | |
tree | 57104f80afe1c3bddfbe5ca928cfcd1e731ad92a /audio/abcde/doinst.sh | |
parent | 4ce0dbc9f70c1c1d7b4cb95c8e1c1e7ff1b1f904 (diff) | |
download | slackbuilds-5953bc5be2592ce5e491acbe6b0c170ba0f7a42b.tar.gz |
audio/abcde: Moved from multimedia
Diffstat (limited to 'audio/abcde/doinst.sh')
-rw-r--r-- | audio/abcde/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/abcde/doinst.sh b/audio/abcde/doinst.sh new file mode 100644 index 0000000000..351330037a --- /dev/null +++ b/audio/abcde/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/abcde.conf.new + |