#!/bin/sh
if [ x${SOLARENV}x = xx ]; then
    echo No environment found, please use 'setsolar'
exit 1
fi

if [ x${SOLARVER}x = xx -o x${UPDMINOR}x = xx  ]; then
    bindir=bin
else
    bindir=bin.$UPDMINOR
fi

if test -f $SOLARVERSION/$INPATH/$bindir/localize.pl ; then
    exec perl -w $SOLARVERSION/$INPATH/$bindir/localize.pl "$@"
else
    exec perl -w $SOLARPIECE/$INPATH/$bindir/localize.pl "$@"
fi
