#! /bin/sh
what=$1
build=.`cat BUILD`
e=${what}e.hex${build}
o=${what}o.hex${build}
echo output to $e $o

echo "m7"		>  $e
echo "v0-2000"  	>> $e
hex -e ${what}   	>> $e
echo "r0-20"		>> $e

echo "m7"		>  $o
echo "v0-2000"  	>> $o
hex -o ${what}   	>> $o
echo "r0-20"		>> $o

nm ${what} | sort | uniq > ${what}.nm$build
cp ${what}		${what}$build
