
LOCATION=$(dirname $0)
FOLDER=$(basename $LOCATION)
if [ "$FOLDER" != "diffs" ]
then
  echo "Should be invoked outside of diffs folder"
  exit 1
fi

cd $(dirname $LOCATION)

for i in `ls *template` ; do
   if [ -f ${i}.orig ] ; then