[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] Re: New 9x9 fuseki database
From: |
Teun Burgers |
Subject: |
Re: [gnugo-devel] Re: New 9x9 fuseki database |
Date: |
Sun, 21 Oct 2001 20:47:22 +0200 |
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
Re: [gnugo-devel] Re: New 9x9 fuseki database, Inge Wallin, 2001/10/22