Re: compiler error

From: Peter Ajamian (pajamian@access1.net)
Date: 08/12/99


Julian Buckley wrote:

> Indeed --- I personally found doing the following a bit tedious though:
> cp file.c filebk.c
> dos2unix file.c > tmp
> mv tmp file.c

So did I, which is why I created a script to do it for me...

#!/bin/sh
# File:  d2u
# Put this file in a directory in your path, then simply type "d2u file.c" to
convert file.c from dos to
# unix format.  it also backs up the original to file.c~ (keeping with the tradition
of emacs).
cp $1 $1~
dos2unix $1~ > $1


Regards,

Peter


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST