#!/bin/sh
# Isomaster 1.0 - wrapper 0.0.1 - GuestToo - June 12, 2007

# ----- uninstall

if [ "$1" = "-uninstall" ]
then
	APPDIR=`dirname "$0"`
	cd "$APPDIR"
	APPDIR="`pwd`"
	MSG=`which gxmessage` || MSG=xmessage
	$MSG -buttons "Uninstall,Cancel" -center -title "Isomaster" "Uninstall Isomaster:
Are you sure?"
	[ $? -eq 101 ] || exit
	rm -f /usr/local/bin/isomaster
	rm -rf /usr/local/share/isomaster/
	rm -f /usr/local/share/locale/*/LC_MESSAGES/isomaster.mo
	rm -f  /usr/share/applications/isomaster.desktop
	$MSG -center -title "Isomaster" "Isomaster is uninstalled" &
	exec rm -rf /root/my-roxapps/Isomaster
	exit
fi

exec isomaster "$@"
