summaryrefslogtreecommitdiff
path: root/graphics/zgv/doinst.sh
diff options
context:
space:
mode:
authorLuis Henrique <lmello.009@gmail.com>2010-06-17 06:44:14 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-17 14:43:58 -0500
commit02fb87d8e6378588ba463f4d2ae83ae7cfe68f80 (patch)
tree16644591280dd607b28b01b6d1228dfe2c1e2ef4 /graphics/zgv/doinst.sh
parent0b0004403cba1504a5c1c4e67837d2053d6d00eb (diff)
downloadslackbuilds-02fb87d8e6378588ba463f4d2ae83ae7cfe68f80.tar.gz
graphics/zgv: Added (svgalib image viewer)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'graphics/zgv/doinst.sh')
-rw-r--r--graphics/zgv/doinst.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/zgv/doinst.sh b/graphics/zgv/doinst.sh
new file mode 100644
index 0000000000..14e052a2d5
--- /dev/null
+++ b/graphics/zgv/doinst.sh
@@ -0,0 +1,18 @@
+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/zgv.conf.new
+
+if [ -x usr/bin/install-info ]; then
+ chroot . /usr/bin/install-info --info-dir=/usr/info /usr/info/zgv.gz 2> /dev/null
+fi
+