diff options
author | B. Watson <yalhcru@gmail.com> | 2012-12-16 17:42:38 -0500 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-12-23 09:16:19 -0500 |
commit | 776358214ba0f1c9ee3a7d80990623fb4de24608 (patch) | |
tree | 850208a5486dea41b4cd5953e3867fd946477add /games/zoom/doinst.sh | |
parent | 70d06d7b87d0ff6f7332aa25228475bf4b58ebf6 (diff) | |
download | slackbuilds-776358214ba0f1c9ee3a7d80990623fb4de24608.tar.gz |
games/zoom: Added (play interactive fiction games)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games/zoom/doinst.sh')
-rw-r--r-- | games/zoom/doinst.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/games/zoom/doinst.sh b/games/zoom/doinst.sh new file mode 100644 index 0000000000..0b300ce961 --- /dev/null +++ b/games/zoom/doinst.sh @@ -0,0 +1,24 @@ +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 usr/share/zoom/zoomrc.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi |