#!/bin/bash
#
#
#    See the file COPYING.GPL.txt, included in this distribution,
#    for details about the copyright.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
#    "uninstall" Copyright (c) by "Fedoramedia team". Is free software,  This
#    works in GNU/Linux, FreeBSD and others, is freed under the terms of the
#    GPL (GNU GENERAL PUBLIC LICENSE). More information can be found in :
#
#    http://www.fedoramedia.cf
#    _________________________________________________________
#
#    You can support this project by sending a donation to :
#
#    Paypal [http://mklauncher.osdn.io/en/donate.html]
#
#

##### Vars #####

Error=""

##### Functions #####

preuninstall()
{
    echo "--- Preuninstall tasks ---"
}

uninstall()
{
    echo "--- Uninstall ---"

    #### mklauncher ####

    rm /usr/local/bin/mklauncher

    #### iconrb ####

    rm /usr/local/bin/iconrb

    #### /usr/share/icons ####

    if test -d "/usr/share/icons"; then 
       rm /usr/share/icons/mk-*.png
    fi

    #### /usr/local/share/icons ####

    if test -d "/usr/local/share/icons"; then 
       rm /usr/local/share/icons/mk-*.png
    fi

    echo "--- OK ---"
}

posuninstall()
{
    echo "--- Posuninstall tasks ---"
    echo "--- OK ---"
}

##### Main #####

##### Note no previous folder required #####

preuninstall
uninstall
posuninstall

