| www.delorie.com/archives/browse.cgi | search |
| From: | Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: makefile problem |
| Date: | Fri, 23 Feb 2001 22:59:45 +0000 |
| Organization: | Customer of Energis Squared |
| Lines: | 21 |
| Message-ID: | <ldqd9tg36lpmo1ij5a31csj52h268enubs@4ax.com> |
| References: | <9741lv$r2d$1 AT murdoch DOT acc DOT Virginia DOT EDU> <uq4d9tgj6dsu5oeff16v51tgip25rs8kuv AT 4ax DOT com> <8582-Fri23Feb2001195158+0200-eliz AT is DOT elta DOT co DOT il> |
| NNTP-Posting-Host: | modem-210.tin.dialup.pol.co.uk |
| Mime-Version: | 1.0 |
| X-Trace: | newsg1.svr.pol.co.uk 982969162 31216 62.136.41.210 (23 Feb 2001 22:59:22 GMT) |
| NNTP-Posting-Date: | 23 Feb 2001 22:59:22 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 |
"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> wrote:
> > dtou *.h *.c
> >
> > In Linux you may have a similar utlity installed, otherwise use `col'
> > in a script.
>
> One could simply compile dtou and utod on GNU/Linux. It's free
> software ;-).
First obstacles would be lack of dir.h and dos.h, then these programs
rely on the implicit conversion to CRLF when reading/writing in text
mode...
This _untested_ script should give same behaviour as dtou:
#!/bin/sh
for f; do
col < "$f" > "$f.dtou"
mv "$f.dtou" "$f"
done
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |