Mail Archives: djgpp/1999/07/30/03:03:53
Jeff Williams <jeffw AT darwin DOT sfbr DOT org> wrote:
> I was thinking to detect whether a given text file (e.g., c source,
> makefile, TeX source, etc). has already been run through `dtou' before
> it gets added to the tarball. If not, apply `dtou' before adding it to
> the archive. In other words, I want to be sure that every text file in
> the tarball has been `dtou'ed, so I can avoid the need for `dos2unix'
> after unpacking everything on a true Unix box.
AFAICT it's ok to run dtou on a text file more than once so you could
dtou all text files on the DOS box before transfer.
The only thing would be to seperate out any binary files. This is
required no matter what conversion method you choose, unless the
dos2unix program detects binary files (which dtou does not it seems).
> It doesn't matter with files transported from office (Solaris) to home
> (djgpp), because djgpp is so good about working with either format.
Have you considered using FTP to transfer the files in ASCII mode?
This should take care of any required conversions in either direction
automatically (assuming you have a DOS machine with a network
connection to your Unix box of course).
--
george
- Raw text -