diff options
author | Dario Nicodemi <dario.sbo@gmail.com> | 2010-06-13 03:00:20 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-06-13 14:52:37 -0500 |
commit | 950b2a9f712a622a3f6a6ff5e1510dd8b54f29e0 (patch) | |
tree | eb12c3b1c0ec469fa57ea7029690ce9d35da0e17 /office/html2ps/doinst.sh | |
parent | d6f28f179bd483d01a81e33103937c197c10711d (diff) |
office/html2ps: Added (html to postscript converter)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/html2ps/doinst.sh')
-rw-r--r-- | office/html2ps/doinst.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/office/html2ps/doinst.sh b/office/html2ps/doinst.sh new file mode 100644 index 0000000000000..b50d1fd8173a6 --- /dev/null +++ b/office/html2ps/doinst.sh @@ -0,0 +1,19 @@ +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... +} + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +config etc/html2ps/html2psrc.new + |