#!/bin/sh
# Install the copy of nsPerl that contains this script.
# To make nsPerl usable via an alias (such as a symbolic
# link or an automounter name), run this script by its
# fully-qualified name under that alias (so $0 will be
# a fully-qualified name).
if [ $# -le 0 ]; then
    PREFIX=`dirname "$0"`
    PREFIX="${PREFIX:-.}"
else
    PREFIX="$1"
fi
if [ "$PREFIX" != "." ]; then
  cd "$PREFIX" || exit $?
fi
case "$PREFIX" in
  /* ) ;; # already fully qualified
   * ) PREFIX=`pwd`;;
esac
lib/sun4-solaris/nsPerl/instruct "$PREFIX" bin/nsperl nsperl
unset PERLLIB PERL5LIB
exec bin/nsperl lib/sun4-solaris/nsPerl/Install.pl "$PREFIX"
