diff options
author | Vincent Batts <vbatts@batts.mine.nu> | 2010-05-11 22:54:27 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 22:54:27 +0200 |
commit | b51093bce423f2646a045fb9406ea4a5a0834eb0 (patch) | |
tree | 4e467c22c4b72da276c97e14bc92a62185ce1142 /libraries/wvstreams/doinst.sh | |
parent | b0120a814160c97c9d66d20803bed479aa7d2798 (diff) |
libraries/wvstreams: Added to 12.1 repository
Diffstat (limited to 'libraries/wvstreams/doinst.sh')
-rw-r--r-- | libraries/wvstreams/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libraries/wvstreams/doinst.sh b/libraries/wvstreams/doinst.sh new file mode 100644 index 0000000000000..be3b470b73e32 --- /dev/null +++ b/libraries/wvstreams/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/uniconf.conf.new + |