#!/bin/csh -f

# Run the rmpl compiler
rmplcomp constellation.rmpl -n > constellation.hca

# fix up the compiled output
sed -f regex.sed constellation.hca > temp.hca

## Finally, merge the rmpl and mof models
python ~/cvs-mit/Titan/Models-MPL/scripts/synchronizeMOF.py ../mof/constellation.mof ./temp.hca > temp2.hca

## clean up after ourselves
\mv temp2.hca constellation.hca
\rm temp.hca
