Mail Archives: djgpp/1997/08/27/04:16:16
At 10:34 AM 8/27/97 +0300, you wrote:
>You should look into your bin subdirectory more often. DJGPP comes with
>such a program already: it is called UTOD (Unix TO Dos) and should be
>sitting right there in your bin subdirectory. There's also an associated
>program DTOU for the reverse job.
>
>These two have a nice feature whereby they preserve the timestamps of the
>converted files, so programs like Make don't even know the file has been
>changed. They also don't require the second argument (the output file),
>since they rewrite the original file, and thus can be used to convert many
>files or even whole directory trees with a single command like this:
>
> utod dir/.../*
>
>
Whoops! forgot about those (I actually took time to look at my bin directory
a while ago... its just that I forgot about it :). Well, it only took about
60 seconds to write my program (Hmmmm.... maybe I could make it so the
timestamp is preserved. Also, I could make it so it only needs one arg (the
filename) and could detect whether or not it is a DOS or Unix file).
Colin
- Raw text -