diff options
Diffstat (limited to 'extra/gnome-robots/gnome-robots.install')
-rw-r--r-- | extra/gnome-robots/gnome-robots.install | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/extra/gnome-robots/gnome-robots.install b/extra/gnome-robots/gnome-robots.install index 3422e0c8a..d04cdce36 100644 --- a/extra/gnome-robots/gnome-robots.install +++ b/extra/gnome-robots/gnome-robots.install @@ -1,35 +1,7 @@ -_scores=( - gnome-robots2.robots2.scores - gnome-robots2.robots2-safe.scores - gnome-robots2.robots2-super-safe.scores - gnome-robots2.robots2_easy.scores - gnome-robots2.robots2_easy-safe.scores - gnome-robots2.robots2_easy-super-safe.scores - gnome-robots2.classic_robots.scores - gnome-robots2.classic_robots-safe.scores - gnome-robots2.classic_robots-super-safe.scores - gnome-robots2.robots_with_safe_teleport.scores - gnome-robots2.robots_with_safe_teleport-safe.scores - gnome-robots2.robots_with_safe_teleport-super-safe.scores - gnome-robots2.nightmare.scores - gnome-robots2.nightmare-safe.scores - gnome-robots2.nightmare-super-safe.scores -) - post_install() { glib-compile-schemas usr/share/glib-2.0/schemas update-desktop-database -q gtk-update-icon-cache -q -f usr/share/icons/hicolor - - for score in "${_scores[@]}" ; do - if [ -e "var/games/$score" ]; then - continue - fi - - touch "var/games/$score" - chown root:games "var/games/$score" - chmod 664 "var/games/$score" - done } post_upgrade() { @@ -37,11 +9,5 @@ post_upgrade() { } post_remove() { - glib-compile-schemas usr/share/glib-2.0/schemas - update-desktop-database -q - gtk-update-icon-cache -q -f usr/share/icons/hicolor - - for score in "${_scores[@]}" ; do - rm -f "var/games/$score" - done + post_install } |