#!/bin/sh

for input in ${INPUTS}
do 
  for cfg in ${CFGFILES}
  do
    basecfg=`basename $cfg .cfg`;
    basein=`basename $input .wp`;
    if [ ! -r ../outputs/$input.$cfg ] 
    then 
      echo Generating input: $cfg with cfg: $input; 
      wp2x.sh $cfg ../inputs/$input >../outputs/$basein.$basecfg
    fi
  done
done 
