#!/bin/sh -f
#
# shell script convert the dos style crlf on each line to just lf
# run this script before tring to compile under unix/linux
#
# execute by:
#    chmod 755 TOUNIX ; ./TOUNIX
# or
#    sh TOUNIX
#

l0="linux_drv/Makefile linux_drv/usbvb.c"
l1="WIN2K.txt README.txt FREEBSD.txt NOTES.txt LINUX.txt"
l2="Makefile vb_usb.h vb_guid.h resource.h vblast.h vb.ini"
l3="vblast.c vars.c util.c usb_win.c usb_devfs.c usb_desc.c usb_bsd.c"
l4="setup.c server.c main.c ini.c cvt.c wsa_error.c vbwin.c"

list="$l0 $l1 $l2 $l3 $l4"
echo $list

for f in $list; do
   echo $f
   /bin/rm -f nocr.tmp
   tr -d \\r < $f > nocr.tmp ; cp nocr.tmp $f
done
/bin/rm -f nocr.tmp

#
# The End!
#
