#!/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:  importer
#
# Parameters:
#
#  -z.target=
#  -z.source=
#  -z.sourcedir=
#  -z.silent
#
#  -z.target= accepts the location of the target library.  This is the customer V5.5 code library.
#    The library can be specified in one of two ways:
#      libraryPath  - This will use fileIO to access the library.
#      server::libraryPath  - This will use EMSRV to access the library.
#
#  -z.source= accepts the location of the source import library.  The format is the same as for the
#    target.
#
#  -z.sourcedir= accepts a directory path.  All *.dat files in the directory will be processed.
#
#  NOTE: One of -z.source or -z.sourcedir must be specified, but never both.
#  
#  -z.silent , when present, causes the importer to run without GUI feedback. (Except for an error
#    exit which will always bring up a confirmation dialog.)
#
# - - - - - - - - - - - - - - - - - - - - - - - - - - - -

#
# 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/importer.icx -ini:$instDir/importer.ini $1 $2 $3 $4 $5

exit 0
