#!/bin/sh -e

if ! ([ "$1" = "configure" ] || [ "$1" = "reconfigure" ]); then
  exit 0
fi

if [ "$1" = "configure" ]; then
    if dpkg --compare-versions "$2" lt '0.12'; then
	[ -f /etc/xdg/autostart/mozc-setup-helper-autostart.desktop ] && rm /etc/xdg/autostart/mozc-setup-helper-autostart.desktop
    fi
fi

#DEBHELPER#
