gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [gnugo-devel] Re: New 9x9 fuseki database


From: Måns Ullerstam
Subject: RE: [gnugo-devel] Re: New 9x9 fuseki database
Date: Sun, 21 Oct 2001 22:08:14 +0200

Thanks,
This is a new try. It seems to work, but I can only test it on my PC.
/ Mans

-----Original Message-----
From: address@hidden [mailto:address@hidden
Behalf Of Teun Burgers
Sent: den 21 oktober 2001 20:47
To: address@hidden
Subject: Re: [gnugo-devel] Re: New 9x9 fuseki database


Måns Ullerstam wrote:

> Can anyone help me. The reason for the patches being corrupted all the
time
> is new lines and carriage returns on PCs. I use:
>
> diff -w oldfile newfile > patch

Do you use cvs? In that case you can use cvs diff to generate
patches.

-w is not correct I think since it ignores all spacing.
I think you should do a normal (cvs) diff -u and remove
trailing \r from the resulting diff. djgpp comes with
a dtou (dos to unix conversion program). Unfortunately
cygwin doesn't. Dan mailed a short C program sometime ago.
Perhaps that can be included in the distribution. You can
also make up a little sed or perl script.
This seems to work:

sed -e 's/\012$//' < patch

> to get my patches correct. The reason for -w is to get rid of weird blanks
> that PC environment creates. How is everyone else doing that develops in a
> PC environment?

I also use cygwin. There are two aspects to this:

1) inspect the output of the cygwin mount command
This looks like this:
   C:\cygwin on / type user (binmode)
   c: on /dev/c type user (textmode,noumount)

You should unpack and check out the gnugo-stuff in a binmode
mounted directory.

> I use Cygwin, but I use a PC text editor for code editing.

2) I use the cygwin vim. That produces unix line endings on
   a binmode mounted directory. You can also download a
   more use friendly screen oriented version of vim called gvim
   for win32 from the vim download sites.

Teun

_______________________________________________
gnugo-devel mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/gnugo-devel

Attachment: extract_fuseki_diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]