#/usr/bin/ksh
#
# Script to generate test configuration files.
#

config_base=cosmic_pp

for ic in false true ; do

  if [[ $ic == false ]] ; then i=0 ; else i=1 ; fi

  for jc in false true ; do

    if [[ $jc == false ]] ; then j=0 ; else j=1 ; fi

    for kc in false true ; do

      if [[ $kc == false ]] ; then k=0 ; else k=1 ; fi

      for lc in false true ; do

        if [[ $lc == false ]] ; then l=0 ; else l=1 ; fi

        cat ${config_base}_test1_head.cf  > ${config_base}_test1_${i}${j}${k}${l}.cf

        echo output_lev1a = .${ic}.      >> ${config_base}_test1_${i}${j}${k}${l}.cf

        echo output_lev1b = .${jc}.      >> ${config_base}_test1_${i}${j}${k}${l}.cf

        echo output_lev2a = .${kc}.      >> ${config_base}_test1_${i}${j}${k}${l}.cf

        echo output_diag = .${lc}.       >> ${config_base}_test1_${i}${j}${k}${l}.cf

        cat ${config_base}_test1_tail.cf >> ${config_base}_test1_${i}${j}${k}${l}.cf

      done

    done

  done

done
