end of line ^M

2002-11-07 Thread shubha mr
Hi,
I have developed a device driver for BSD and I mailed
it to a customer from a windows machine.But the driver
did not compile on the target BSD machine.we found
that because the src files got ^M's for every end -of
-line beacause of windows,and hence the compile did
not go through.Is there any flag that I  can set in
the makefile for gcc so that the end of line charaters
are ignored during compilation?

Please help urgently.I have the scripts to remmove
this ^M's but if I can modify the makefile to set some
flag then it will be a much better solution.

Thankyou
shubha

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: end of line ^M

2002-11-07 Thread Jens Rehsack
shubha mr wrote:

Hi,
I have developed a device driver for BSD and I mailed
it to a customer from a windows machine.But the driver
did not compile on the target BSD machine.we found
that because the src files got ^M's for every end -of
-line beacause of windows,and hence the compile did
not go through.Is there any flag that I  can set in
the makefile for gcc so that the end of line charaters
are ignored during compilation?

Please help urgently.I have the scripts to remmove
this ^M's but if I can modify the makefile to set some
flag then it will be a much better solution.


Wouldn't it much better you use an editor which is able to edit files in 
unix node? There're several one's, eg.
- Mr. Ed: http://www.utopia-planitia.de/
- Programmers File Editor
- Visual Slick-Edit
- WinEdit
...

You can also use the dosunix-port which is able to format dos file into 
unix and vice versa.

Thankyou
shubha


Jens
--
L i  W W W  i Jens Rehsack
LW W W
L i   W   W W   W   i  nnnLiWing IT-Services
L iW W   W Wi  n  n  g   g
  i W W i  n  n  g   gFriesenstraße 2
  06112 Halle
 g
 g   g
Tel.:  +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED]
Fax:   +49 - 3 45 - 5 17 05 92http://www.liwing.de/



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: end of line ^M

2002-11-07 Thread Jerry McAllister
 
 Hi,
 I have developed a device driver for BSD and I mailed
 it to a customer from a windows machine.But the driver
 did not compile on the target BSD machine.we found
 that because the src files got ^M's for every end -of
 -line beacause of windows,and hence the compile did
 not go through.Is there any flag that I  can set in
 the makefile for gcc so that the end of line charaters
 are ignored during compilation?
 
 Please help urgently.I have the scripts to remmove
 this ^M's but if I can modify the makefile to set some
 flag then it will be a much better solution.

Three ways to deal with this:

 1. Do the editing in a UNIX environment.  Guess you are sort of
past this one already.

 2. When you transfer the source from the Microsloth machine to the UNIX
machine use FTP in ASCII mode.   eg.  after you have made the FTP
connection, type 'ascii'  (minus the quotes).   FTP will automatically
strip the ^M from the lines.   By the way, going the other direction,
- UNIX to MS, it will add them for you.

 3. Already on the UNIX system?   use tr(1).  It will make such changes.  
type   rtr -d \r  MESSYFILE  UNIFILE
where:   MESSYFILE is the file from MS with the extra ^M
 UNIFILE is the resulting cleaned up file

jerry

 
 Thankyou
 shubha
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: end of line ^M

2002-11-07 Thread Marcio Merlone


Jens Rehsack wrote:

shubha mr wrote:
Wouldn't it much better you use an editor which is able to edit files in 
unix node? There're several one's, eg.
- Mr. Ed: http://www.utopia-planitia.de/
- Programmers File Editor
- Visual Slick-Edit
- WinEdit

BTW, I have not found such kind of programmer editor for X to use on 
*nix. All i've seen is screen, quanta and similars that are oriented for 
html/php code.

Does anybody know any?

[ ]'s

--
Marcio Merlone



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: end of line ^M

2002-11-07 Thread Jens Rehsack
Marcio Merlone wrote:



Jens Rehsack wrote:


shubha mr wrote:
Wouldn't it much better you use an editor which is able to edit files 
in unix node? There're several one's, eg.
- Mr. Ed: http://www.utopia-planitia.de/
- Programmers File Editor
- Visual Slick-Edit
- WinEdit


BTW, I have not found such kind of programmer editor for X to use on 
*nix. All i've seen is screen, quanta and similars that are oriented for 
html/php code.

Ever tried K-develop, gvim, xemacs etc.?

Jens
--
L i  W W W  i Jens Rehsack
LW W W
L i   W   W W   W   i  nnnLiWing IT-Services
L iW W   W Wi  n  n  g   g
  i W W i  n  n  g   gFriesenstraße 2
  06112 Halle
 g
 g   g
Tel.:  +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED]
Fax:   +49 - 3 45 - 5 17 05 92http://www.liwing.de/



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message