#! /bin/sh
#### UNINSTALL SCRIPT - Generated by SetupDB 1.6 #####
DetectARCH()
{
        status=1
        case `uname -m` in
           amd64 | x86_64)  echo "x86_64"
                  status=0;;
           i?86 | i86*)  echo "x86"
                  status=0;;
           90*/*)
		   echo "hppa"
		   status=0;;
	    *)
		case `uname -s` in
		    IRIX*)
			echo "mips"
			status=0;;
           AIX*)
           echo "ppc"
           status=0;;
		    *)
			arch=`uname -p 2>/dev/null || uname -m`
                       if test "$arch" = powerpc; then
                          echo "ppc"
                       else
                          echo $arch
                       fi
			status=0;;
		esac
        esac
        return $status
}

DetectOS()
{
  os=`uname -s`
  if test "$os" = OpenUNIX; then
     echo SCO_SV
  else
     echo $os
  fi
  return 0
}

UNINSTALL_CONSOLE="$HOME/.loki/installed/bin/`DetectOS`/`DetectARCH`/uninstall"
argv0_dir=`dirname $0`
if [ -x "$argv0_dir/bin/uninstall.gtk" ] ; then 
     $argv0_dir/bin/uninstall.gtk
     if [ $? -eq 0 ] ; then
         exit 0
     fi
fi
if test ! -x "$UNINSTALL_CONSOLE" ; then
    echo Could not find a usable uninstall program. Aborting.
    exit 1
fi
"$UNINSTALL_CONSOLE" -L picasa "/opt/picasa/.manifest/picasa.xml" "$1"