Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ANN] gdiff / gpatch 0.0.1 released

1 view
Skip to first unread message

Brian Schröder

unread,
Oct 29, 2005, 6:27:47 AM10/29/05
to
Hello rubyists,

I released a new cleaned up version of the gdiff / gpatch library and
programs. Now available as a gem and in setup.rb format.

Find it at

http://ruby.brian-schroeder.de/gdiff/

Installation:

wget http://ruby.brian-schroeder.de/gdiff/releases/gdiff-0.0.1.tar.bz2
tar -xvvjf gdiff-0.0.1.tar.bz2
cd gdiff-0.0.1
ruby setup.rb

Usage:

gdiff file_a file_b > patch
gpatch file_a patch > file_b_from_patch

or as a library:

require 'gdiff'

File.open("patch", "wb") do | patch |
patch << Diff::GDiff.diff(File.read("file_a"), File.read("file_b")).pack
end

File.open("file_b_from_patch", "wb") do | file_b_2 |
file_b_2 <<
Diff::GDiff.unpack(File.read("patch")).apply_to(File.read("file_a"))
end

regard,

Brian


--
http://ruby.brian-schroeder.de/

Stringed instrument chords: http://chordlist.brian-schroeder.de/


Zed A. Shaw

unread,
Oct 29, 2005, 12:48:31 PM10/29/05
to
Hey Brian,

Cool stuff. I swear someday I have to get back into the fastcst
thing. I just have so much crap to do it's killing me.

Let me know if you run into any bugs in the suffix array delta library.

Zed

Brian Schröder

unread,
Oct 29, 2005, 2:00:18 PM10/29/05
to
On 29/10/05, Zed A. Shaw <zed...@zedshaw.com> wrote:
> Hey Brian,
>
> Cool stuff. I swear someday I have to get back into the fastcst
> thing. I just have so much crap to do it's killing me.
>
> Let me know if you run into any bugs in the suffix array delta library.
>
> Zed
>

Thank you Zed,

I already wrote you directly, but maybe I used the wrong address. So
I'd like to ask you here in public if it is legal under the suffix
array library licence and acceptable to you to publish this work using
the ruby licence?
And I have included your sourcecode including the README, LICENCE and
COPYING file ripped from the fastcst tarball directly in this release.
Is that ok?

cheers,

0 new messages