Text files
fredex
fredex at fcshome.stoneham.ma.us
Thu Feb 24 23:36:10 UTC 2005
On Thu, Feb 24, 2005 at 05:14:43PM -0600, H. Streit wrote:
> Okay, one of our programmers wants to start porting over a unix app he
> wrote to *shudder* windows. In order to do this, he's mounted his
> home directory to his windows box via samba, now he's trying to copy
> over the sourcecode, but he's having that infamous "UNIX-to-DOS text
> file format" issue (a.k.a LF vs CRLF). He's trying to write a batch
> file using gvim to convert all these files...and everything works if
> you type-out everything at the cmd.exe prompt, but the batch file
> won't batch...here's what he's got
>
> gvim -c "set ff=dos" -c "saveas source.i" -c x -<H:\username\src\source.i
> gvim -c "set ff=dos" -c "saveas source.h" -c x -<H:\username\src\source.h
> gvim -c "set ff=dos" -c "saveas source.c" -c x -<H:\username\src\source.c
>
> any suggestions?
Yeah. use "unix2dos" instead.
--
---- Fred Smith -- fredex at fcshome.stoneham.ma.us -----------------------------
"For him who is able to keep you from falling and to present you before his
glorious presence without fault and with great joy--to the only God our Savior
be glory, majesty, power and authority, through Jesus Christ our Lord, before
all ages, now and forevermore! Amen."
----------------------------- Jude 1:24,25 (niv) -----------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050224/b927a624/attachment-0001.sig>
More information about the fedora-list
mailing list