
# testing:  sh -x scriptname

USAGE="usage: $0:  sourcepath destdir"

FLAG=" " 
if test "$1" = "-b"; then
   FLAG="-b"
   shift
   fi

SRCDIR=`dirname $1`

echo $*

if test "$SRCDIR" = "." ; then
   SRCDIR=`pwd`
   fi

if test ! -d $SRCDIR; then
    echo Bad source directory $SRCDIR 
    echo $USAGE
    exit 1
    fi


COUNTER=0
for i in $* 
   do
   COUNTER=`expr $COUNTER + 1` 
   if test $COUNTER -eq $#; then 
      DESTDIR=$i
      break
      fi
   done


for i in $*
    do
    if test ! -f $i; then
       continue
       fi
    doscp $FLAG $i /mnt/floppy/$i 
done


