#! /bin/sh

sys=$1

# check for the existence of CRs that we need
crs=''
for cr in `cat ${sys}_cr.txt`; do
  if [ -f ${cr}.pm -o -f mtt/${cr}.pm ]; then
      crs="$crs $cr"
  fi
done

# should be reading the output from ese_r2make
# on standard input
${MTT_LIB}/cr/perl/apply_cr.pl ${crs}

