#!sh
# unify loader for new curses (Ncurses)
if test "$UNIFY"; then
    echo load $1
    if test -f a.out; then
      rm a.out
    fi

    scc -i \
	    $2 $3 $4 $5 $6 $7 $8 $9 \
	    $UNIFY/libd.a  $UNIFY/libx.a \
	    $UNIFY/termcap.a \
	    -lm -lNcurses -ltermlib

    if test -f a.out; then
	size a.out
	chmod 777 a.out
	mv a.out $1
	echo $1 loaded as $1
    else
	echo $1 not loaded
    fi
else
    echo "$0: The UNIFY environment variable is not set."
fi
