#!/bin/sh
# Do a Modula-3 build, connected to Energize if the -Xez option is supplied.
args=""
ez=""
while [ $# -gt 0 ]
do
  case "$1" in
    -Xez*)	ez="$1";;
    *)		args="$args $1";;
  esac
  shift
done
m3build -DM3=/u/gray/bin.sun4/m3-ez \
	-DM3OPTIONS="-w1 -why -g $ez -make-wrapper `basename $0`" $args
