Tue, Jun 06, 2000 at 03:24:56PM -0300, The Hermit Hacker пишет:
> On Tue, 6 Jun 2000, Eugene Karpachov wrote:
>
> > Excuse me, but why postgresql team doesn't release patches? I mean something
> > like postgresql-7.0-7.0.1.diff.gz etc. It is big waste of traffic to download
> > all the source distribution again.
>
> we've tried in the past, and so far nobody has been able to give us a
> patch command that works effectively *shrug* each time we've tried, the
> patch has blown up in someone's face :(
Ok, I'll try it myself.
I have no 7.0.1 so I trying to make diff from 7.0 to 7.0.2.
%tar -zxf postgresql-7.0.tar.gz
%tar -zxf postgresql-7.0.2.tar.gz
%diff -rNU 3 postgresql-7.0 postgresql-7.0.2 > postgresql-7.0-7.0.2.diff
%wc postgresql-7.0-7.0.2.diff
23411 103967 914476 postgresql-7.0-7.0.2.diff
It has not blown up in my face! 914476 bytes only.
And better:
%diff -rNU 3 postgresql-7.0 postgresql-7.0.2 |
gzip -9 >postgresql-7.0-7.0.2.diff.gz
%wc -c postgresql-7.0-7.0.2.diff.gz
163903 postgresql-7.0-7.0.2.diff.gz
or better:
%diff -rNU 3 postgresql-7.0 postgresql-7.0.2 |
bzip2 >postgresql-7.0-7.0.2.diff.bz2
%wc -c postgresql-7.0-7.0.2.diff.gz
131978 postgresql-7.0-7.0.2.diff.bz2
131978 bytes - it is not the same as 7211311 (postgresql-7.0.2.tar.gz)!
The only problem is how to deal with binary files - those .gz etc?
May be include them into distribution untarred/ungzipped because the
whole distribution is gzipped anyway?
--
jk