Mail Archives: djgpp/2001/02/23/12:25:12
clc5q AT cobra DOT cs DOT Virginia DOT EDU (Clark L. Coleman) wrote:
> I have a multi-boot machine (DR-DOS, Win95, WinNT, and Linux). I need
> to build a Linux version of some software that I normally edit and
> build using DJGPP under NT 4.0. As a result, I would like to use a
> makefile to assist in the constant conversion of files from Dos to
> Unix format, which will execute the dos2unix.com file that I
> downloaded for that purpose.
As Eli has pointed out, by far the best solution is to keep all files
in Unix format.
However, files with CRLF can still creep in and cause grief so it is
useful to have a way to correct these. DJGPP has a utility to do just
what you want:
dtou *.h *.c
In Linux you may have a similar utlity installed, otherwise use `col'
in a script.
- Raw text -