:
# @(#) tolower v1.0
#

if [ ! "$*" ]
then
   echo "Preparing to rename ALL files. OK to continue? (y/n) \c"
   read OK
   case $OK in
      [yY])
	 LIST=`ls *.h *.c`
         break
         ;;
      *)
         echo "Usage : `basename $0` file [ file ... ]"
         exit 1
         ;;
   esac
else
   LIST=$*
fi

for NAME in $LIST
do
   echo "Removing C/R's from $NAME"
   ./nocr <$NAME >xxx
   mv xxx $NAME
done

