summaryrefslogtreecommitdiff
path: root/misc/html2ps/doinst.sh
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2012-04-06 09:44:53 -0400
committerdsomero <xgizzmo@slackbuilds.org>2012-04-06 09:44:53 -0400
commitae440552097271383648dff005a882168115e0da (patch)
treec2395346663b92facc22962e0747691a0756bab3 /misc/html2ps/doinst.sh
parent6c1d2146bc227d6221c2c8f87a88668454921499 (diff)
downloadslackbuilds-ae440552097271383648dff005a882168115e0da.tar.gz
misc/html2ps: Added (converts html to postscript)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'misc/html2ps/doinst.sh')
-rw-r--r--misc/html2ps/doinst.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/misc/html2ps/doinst.sh b/misc/html2ps/doinst.sh
new file mode 100644
index 0000000000..b50d1fd817
--- /dev/null
+++ b/misc/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
+