#!/bin/sh
# ESS[BUGS]:  02/17/2004
# runs BUGS taking commands from command file
#

case $# in
     1) bugs05.sparc 32 bugs $1
	cp -fp bugs.log bugs.bog
	chmod -w bugs.bog
	;;
     2) bugs05.sparc 32 $1 $2
	cp -fp $1.log $1.bog
	chmod -w $1.bog
	;;
     3) bugs05.sparc $1 $2 $3
	cp -fp $2.log $2.bog
	chmod -w $2.bog
	;;
     *) echo "usage: $0 [[number_of_bins] default_output_name] command_file";;
esac
