From b51093bce423f2646a045fb9406ea4a5a0834eb0 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 11 May 2010 22:54:27 +0200 Subject: libraries/wvstreams: Added to 12.1 repository --- libraries/wvstreams/doinst.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libraries/wvstreams/doinst.sh (limited to 'libraries/wvstreams/doinst.sh') diff --git a/libraries/wvstreams/doinst.sh b/libraries/wvstreams/doinst.sh new file mode 100644 index 0000000000..be3b470b73 --- /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 + -- cgit v1.2.3