#!/bin/sh
# clean up (delete) all animation files for a project on hyades /vol/hy_ext/

get_yesno()
{
    ANS="X"
    while [ "$ANS" != "y" -a "$ANS" != "n" -a "$ANS" != "Y" -a "$ANS" != "N" ]
    do
      echo  " (y/n): "
      read ANS
    done
}

if test $# = 0
  then
    echo Error, give the Name of the Project. 
    exit
fi

ProjName=$1
export ProjName
OutputPath=/vol/hy_ext/SME/Projects/
export OutputPath

echo You will be DELETING **ALL** animation files from:
echo $OutputPath$ProjName/Output/
echo Is that ok? 

get_yesno
if [ "$ANS" != "y" -a "$ANS" != "Y" ]
  then 
	exit
fi

if
test -f $OutputPath$ProjName/Output/Animation1/*
then
echo removing $OutputPath$ProjName/Output/Animation1/
rm $OutputPath$ProjName/Output/Animation1/*
fi
if
test -f $OutputPath$ProjName/Output/Animation2/*
then
echo removing $OutputPath$ProjName/Output/Animation2/
rm $OutputPath$ProjName/Output/Animation2/*
fi
if
test -f $OutputPath$ProjName/Output/Animation3/*
then
echo removing $OutputPath$ProjName/Output/Animation3/
rm $OutputPath$ProjName/Output/Animation3/*
fi
if
test -f $OutputPath$ProjName/Output/Animation4/*
then
echo removing $OutputPath$ProjName/Output/Animation4/
rm $OutputPath$ProjName/Output/Animation4/*
fi
if
test -f $OutputPath$ProjName/Output/Animation5/*
then
echo removing $OutputPath$ProjName/Output/Animation5/
rm $OutputPath$ProjName/Output/Animation5/*
fi
if
test -f $OutputPath$ProjName/Output/Animation6/*
then
echo removing $OutputPath$ProjName/Output/Animation6/
rm $OutputPath$ProjName/Output/Animation6/*
fi
if
test -f $OutputPath$ProjName/Output/Animation7/*
then
echo removing $OutputPath$ProjName/Output/Animation7/
rm $OutputPath$ProjName/Output/Animation7/*
fi
if
test -f $OutputPath$ProjName/Output/Animation8/*
then
echo removing $OutputPath$ProjName/Output/Animation8/
rm $OutputPath$ProjName/Output/Animation8/*
fi
if
test -f $OutputPath$ProjName/Output/Animation9/*
then
echo removing $OutputPath$ProjName/Output/Animation9/
rm $OutputPath$ProjName/Output/Animation9/*
fi
if
test -f $OutputPath$ProjName/Output/Animation10/*
then
echo removing $OutputPath$ProjName/Output/Animation10/
rm $OutputPath$ProjName/Output/Animation10/*
fi
if
test -f $OutputPath$ProjName/Output/Animation11/*
then
echo removing $OutputPath$ProjName/Output/Animation11/
rm $OutputPath$ProjName/Output/Animation11/*
fi
if
test -f $OutputPath$ProjName/Output/Animation12/*
then
echo removing $OutputPath$ProjName/Output/Animation12/
rm $OutputPath$ProjName/Output/Animation12/*
fi
if
test -f $OutputPath$ProjName/Output/Animation13/*
then
echo removing $OutputPath$ProjName/Output/Animation13/
rm $OutputPath$ProjName/Output/Animation13/*
fi
if
test -f $OutputPath$ProjName/Output/Animation14/*
then
echo removing $OutputPath$ProjName/Output/Animation14/
rm $OutputPath$ProjName/Output/Animation14/*
fi
if
test -f $OutputPath$ProjName/Output/Animation15/*
then
echo removing $OutputPath$ProjName/Output/Animation15/
rm $OutputPath$ProjName/Output/Animation15/*
fi
if
test -f $OutputPath$ProjName/Output/Animation16/*
then
echo removing $OutputPath$ProjName/Output/Animation16/
rm $OutputPath$ProjName/Output/Animation16/*
fi
if
test -f $OutputPath$ProjName/Output/Animation17/*
then
echo removing $OutputPath$ProjName/Output/Animation17/
rm $OutputPath$ProjName/Output/Animation17/*
fi
if
test -f $OutputPath$ProjName/Output/Animation18/*
then
echo removing $OutputPath$ProjName/Output/Animation18/
rm $OutputPath$ProjName/Output/Animation18/*
fi
if
test -f $OutputPath$ProjName/Output/Animation19/*
then
echo removing $OutputPath$ProjName/Output/Animation19/
rm $OutputPath$ProjName/Output/Animation19/*
fi
if
test -f $OutputPath$ProjName/Output/Animation20/*
then
echo removing $OutputPath$ProjName/Output/Animation20/
rm $OutputPath$ProjName/Output/Animation20/*
fi
if
test -f $OutputPath$ProjName/Output/Animation21/*
then
echo removing $OutputPath$ProjName/Output/Animation21/
rm $OutputPath$ProjName/Output/Animation21/*
fi
if
test -f $OutputPath$ProjName/Output/Animation22/*
then
echo removing $OutputPath$ProjName/Output/Animation22/
rm $OutputPath$ProjName/Output/Animation22/*
fi
if
test -f $OutputPath$ProjName/Output/Animation23/*
then
echo removing $OutputPath$ProjName/Output/Animation23/
rm $OutputPath$ProjName/Output/Animation23/*
fi
if
test -f $OutputPath$ProjName/Output/Animation24/*
then
echo removing $OutputPath$ProjName/Output/Animation24/
rm $OutputPath$ProjName/Output/Animation24/*
fi
if
test -f $OutputPath$ProjName/Output/Animation25/*
then
echo removing $OutputPath$ProjName/Output/Animation25/
rm $OutputPath$ProjName/Output/Animation25/*
fi
if
test -f $OutputPath$ProjName/Output/Animation26/*
then
echo removing $OutputPath$ProjName/Output/Animation26/
rm $OutputPath$ProjName/Output/Animation26/*
fi
if
test -f $OutputPath$ProjName/Output/Animation27/*
then
echo removing $OutputPath$ProjName/Output/Animation27/
rm $OutputPath$ProjName/Output/Animation27/*
fi
if
test -f $OutputPath$ProjName/Output/Animation28/*
then
echo removing $OutputPath$ProjName/Output/Animation28/
rm $OutputPath$ProjName/Output/Animation28/*
fi
if
test -f $OutputPath$ProjName/Output/Animation29/*
then
echo removing $OutputPath$ProjName/Output/Animation29/
rm $OutputPath$ProjName/Output/Animation29/*
fi
if
test -f $OutputPath$ProjName/Output/Animation30/*
then
echo removing $OutputPath$ProjName/Output/Animation30/
rm $OutputPath$ProjName/Output/Animation30/*
fi
if
test -f $OutputPath$ProjName/Output/Animation31/*
then
echo removing $OutputPath$ProjName/Output/Animation31/
rm $OutputPath$ProjName/Output/Animation31/*
fi
if
test -f $OutputPath$ProjName/Output/Animation32/*
then
echo removing $OutputPath$ProjName/Output/Animation32/
rm $OutputPath$ProjName/Output/Animation32/*
fi
if
test -f $OutputPath$ProjName/Output/Animation33/*
then
echo removing $OutputPath$ProjName/Output/Animation33/
rm $OutputPath$ProjName/Output/Animation33/*
fi
if
test -f $OutputPath$ProjName/Output/Animation34/*
then
echo removing $OutputPath$ProjName/Output/Animation34/
rm $OutputPath$ProjName/Output/Animation34/*
fi
if
test -f $OutputPath$ProjName/Output/Animation35/*
then
echo removing $OutputPath$ProjName/Output/Animation35/
rm $OutputPath$ProjName/Output/Animation35/*
fi
if
test -f $OutputPath$ProjName/Output/Animation36/*
then
echo removing $OutputPath$ProjName/Output/Animation36/
rm $OutputPath$ProjName/Output/Animation36/*
fi
if
test -f $OutputPath$ProjName/Output/Animation37/*
then
echo removing $OutputPath$ProjName/Output/Animation37/
rm $OutputPath$ProjName/Output/Animation37/*
fi
if
test -f $OutputPath$ProjName/Output/Animation38/*
then
echo removing $OutputPath$ProjName/Output/Animation38/
rm $OutputPath$ProjName/Output/Animation38/*
fi
if
test -f $OutputPath$ProjName/Output/Animation39/*
then
echo removing $OutputPath$ProjName/Output/Animation39/
rm $OutputPath$ProjName/Output/Animation39/*
fi
if
test -f $OutputPath$ProjName/Output/Animation40/*
then
echo removing $OutputPath$ProjName/Output/Animation40/
rm $OutputPath$ProjName/Output/Animation40/*
fi
if
test -f $OutputPath$ProjName/Output/Animation41/*
then
echo removing $OutputPath$ProjName/Output/Animation41/
rm $OutputPath$ProjName/Output/Animation41/*
fi
if
test -f $OutputPath$ProjName/Output/Animation42/*
then
echo removing $OutputPath$ProjName/Output/Animation42/
rm $OutputPath$ProjName/Output/Animation42/*
fi
if
test -f $OutputPath$ProjName/Output/Animation43/*
then
echo removing $OutputPath$ProjName/Output/Animation43/
rm $OutputPath$ProjName/Output/Animation43/*
fi
if
test -f $OutputPath$ProjName/Output/Animation44/*
then
echo removing $OutputPath$ProjName/Output/Animation44/
rm $OutputPath$ProjName/Output/Animation44/*
fi
if
test -f $OutputPath$ProjName/Output/Animation45/*
then
echo removing $OutputPath$ProjName/Output/Animation45/
rm $OutputPath$ProjName/Output/Animation45/*
fi
if
test -f $OutputPath$ProjName/Output/Animation46/*
then
echo removing $OutputPath$ProjName/Output/Animation46/
rm $OutputPath$ProjName/Output/Animation46/*
fi
if
test -f $OutputPath$ProjName/Output/Animation47/*
then
echo removing $OutputPath$ProjName/Output/Animation47/
rm $OutputPath$ProjName/Output/Animation47/*
fi
if
test -f $OutputPath$ProjName/Output/Animation48/*
then
echo removing $OutputPath$ProjName/Output/Animation48/
rm $OutputPath$ProjName/Output/Animation48/*
fi
if
test -f $OutputPath$ProjName/Output/Animation49/*
then
echo removing $OutputPath$ProjName/Output/Animation49/
rm $OutputPath$ProjName/Output/Animation49/*
fi
if
test -f $OutputPath$ProjName/Output/Animation50/*
then
echo removing $OutputPath$ProjName/Output/Animation50/
rm $OutputPath$ProjName/Output/Animation50/*
fi
if
test -f $OutputPath$ProjName/Output/Animation51/*
then
echo removing $OutputPath$ProjName/Output/Animation51/
rm $OutputPath$ProjName/Output/Animation51/*
fi
if
test -f $OutputPath$ProjName/Output/Animation52/*
then
echo removing $OutputPath$ProjName/Output/Animation52/
rm $OutputPath$ProjName/Output/Animation52/*
fi
if
test -f $OutputPath$ProjName/Output/Animation53/*
then
echo removing $OutputPath$ProjName/Output/Animation53/
rm $OutputPath$ProjName/Output/Animation53/*
fi
if
test -f $OutputPath$ProjName/Output/Animation54/*
then
echo removing $OutputPath$ProjName/Output/Animation54/
rm $OutputPath$ProjName/Output/Animation54/*
fi
if
test -f $OutputPath$ProjName/Output/Animation55/*
then
echo removing $OutputPath$ProjName/Output/Animation55/
rm $OutputPath$ProjName/Output/Animation55/*
fi
if
test -f $OutputPath$ProjName/Output/Animation56/*
then
echo removing $OutputPath$ProjName/Output/Animation56/
rm $OutputPath$ProjName/Output/Animation56/*
fi
if
test -f $OutputPath$ProjName/Output/Animation57/*
then
echo removing $OutputPath$ProjName/Output/Animation57/
rm $OutputPath$ProjName/Output/Animation57/*
fi
if
test -f $OutputPath$ProjName/Output/Animation58/*
then
echo removing $OutputPath$ProjName/Output/Animation58/
rm $OutputPath$ProjName/Output/Animation58/*
fi
if
test -f $OutputPath$ProjName/Output/Animation59/*
then
echo removing $OutputPath$ProjName/Output/Animation59/
rm $OutputPath$ProjName/Output/Animation59/*
fi
if
test -f $OutputPath$ProjName/Output/Animation60/*
then
echo removing $OutputPath$ProjName/Output/Animation60/
rm $OutputPath$ProjName/Output/Animation60/*
fi
