#!/bin/sh
# wxfromdos
# Converts all files on the command line from DOS to UNIX
# end-of-line format. Change FROMDOSPROGRAM to be
# your local DOS to UNIX filter, e.g. fromdos or dos2unix

FROMDOSPROGRAM=fromdos

if [ "$1" = "" ]
then
  echo "Usage: wxfromdos file1 file2 ..."
  exit
fi

while [ ! "$1" = "" ]
do
  if [ -f $1 ]
  then
    echo "Converting "$1"..."
    $FROMDOSPROGRAM < $1 > fromdos.tmp
    /bin/mv fromdos.tmp $1
  fi
  shift
done
