
#
# Please note that we're using $NEXT_ROOT to get a default drive letter.
# This assumes that OmniMake is installed on the same drive as OPENSTEP,
# which might not be true in all cases--though, it's the sanest default
# we could think of.  If it doesn't suit your installation, you're free
# to override the following variables (and their default values) in your
# $HOME/.omnimake.
#

if test -z $OMNIMAKE_BUILD_OUTPUT_ROOT
then
    OMNIMAKE_BUILD_OUTPUT_ROOT=$NEXT_ROOT/../Cache/$USER/BuildOutput
    export OMNIMAKE_BUILD_OUTPUT_ROOT
fi

if test -z $OMNIMAKE_INSTALL_ROOT
then
    OMNIMAKE_INSTALL_ROOT=$NEXT_ROOT/../Cache/$USER/InstallRoot
    export OMNIMAKE_INSTALL_ROOT
fi

# This assumes it is mounted via Samba;
# override this in your profile.sh if this is incorrect

if test -z $OMNIMAKE_ROOT
then
    OMNIMAKE_ROOT=Z:/$USER/Source/OmniGroup/OmniMake
    export OMNIMAKE_ROOT
fi

if test -z $LOCAL_MAKEFILEDIR
then
    LOCAL_MAKEFILEDIR=$OMNIMAKE_ROOT/Makefiles
    export LOCAL_MAKEFILEDIR
fi

#
#  Sources your $HOME/.omnimake on NT (might want to do this on mach,
#  too, for consistency), since we can't use a .zshenv (no zsh.)
#  Be sure you use:
#          var = value; export var
#  ...and not:
#          export var = value;
#  Bourne shell doesn't like the latter as most shells do.
#
#  And don't put any shell customization commands in your .omnimake
#  such as "set -E emacs".  It'll piss off make something terrible.
#
if test -r $HOME/.omnimake; then
    . $HOME/.omnimake
fi

#
#  Starts omnimake.perl using whichever perl is in $PATH first.  "Evil"
#  perl has been removed from repository.
#
perl $OMNIMAKE_ROOT/utilities/omnimake.perl "$@"

