#!/bin/bash
#
# Licensed Program Product:
#   VisualAge Smalltalk Enterprise V6.0.3
#
# (C) COPYRIGHT International Business Machines Corp. 1995, 2005
# All Rights Reserved
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with
# IBM Corp. and its licensors.
#
# Generated   InstallScriptsEtc  (01/28/2002 05:01:46 PM)

# - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# script:  uninst
# - - - - - - - - - - - - - - - - - - - - - - - - - - - -

#
# Change the value of $vastroot if VisualAge Smalltalk is moved to a different location.
#
vastroot=/opt/IBMvast/6.0

instDir=$vastroot/inst

abtslpath=$instDir

export LD_LIBRARY_PATH=$abtslpath:$LD_LIBRARY_PATH
export PATH=$abtslpath:$PATH

$instDir/es -mcd -no_break -i$instDir/uninst.icx -ini:$instDir/uninst.ini -z.c

# Now try to remove the other "left-over" directories if they are, indeed, empty
cd /tmp
rmdir $vastroot/attributes
rmdir $vastroot/inst
rmdir $vastroot/bin
rmdir $vastroot

exit 0
