diff options
author | B. Watson <yalhcru@gmail.com> | 2010-05-12 23:27:50 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 23:27:50 +0200 |
commit | f0a5888b46cf0d3ab0b7e2b3933c6deb709898dc (patch) | |
tree | 78b37861fd235de69025ff48bc9440a81a12e862 /audio/eawpats/doinst.sh | |
parent | 5b5c262d44113bb993d5d5d054b835d040996909 (diff) | |
download | slackbuilds-f0a5888b46cf0d3ab0b7e2b3933c6deb709898dc.tar.gz |
audio/eawpats: Added to 12.2 repository
Diffstat (limited to 'audio/eawpats/doinst.sh')
-rw-r--r-- | audio/eawpats/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/eawpats/doinst.sh b/audio/eawpats/doinst.sh new file mode 100644 index 0000000000..110f77527d --- /dev/null +++ b/audio/eawpats/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/timidity/eawpats.cfg.new + |