From: Jason Green Newsgroups: comp.os.msdos.djgpp Subject: Re: makefile problem Date: Fri, 23 Feb 2001 17:06:30 +0000 Organization: Customer of Energis Squared Lines: 20 Message-ID: References: <9741lv$r2d$1 AT murdoch DOT acc DOT Virginia DOT EDU> NNTP-Posting-Host: modem-41.connecticut.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsg2.svr.pol.co.uk 982947969 26023 62.137.58.41 (23 Feb 2001 17:06:09 GMT) NNTP-Posting-Date: 23 Feb 2001 17:06:09 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Agent 1.7/32.534 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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.