diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2015-01-26 15:21:11 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-17 09:40:16 +0700 |
commit | 2289b5dc210081b521c143d2612697086801bc93 (patch) | |
tree | 84c161243248a736bbe99e933315b28620f57a9e /network/urlview/doinst.sh | |
parent | cd2b1cf394b7a0ed1536e1394c04a10addc0bc3c (diff) | |
download | slackbuilds-2289b5dc210081b521c143d2612697086801bc93.tar.gz |
network/urlview: Added (extract URLs from text files).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/urlview/doinst.sh')
-rw-r--r-- | network/urlview/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/network/urlview/doinst.sh b/network/urlview/doinst.sh new file mode 100644 index 0000000000..4cf8309066 --- /dev/null +++ b/network/urlview/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/urlview.conf.new +config usr/bin/url_handler.sh.new |