According to Emma Jane Hogbin:
> On Thu, Feb 20, 2003 at 12:18:45PM -0600, Gilles Detillieux wrote:
> > While looking for Gabriele's cookies patch, I stumbled upon this long
> > forgotten message...
>
> Thanks for checking in. :) I ended up copying and pasting the binary file
> from another web server (both debian installations). I put the
> instructions that I got from various people up on the language HOWTO that
> I did. Here they are in case anyone else needs the info. Please let me
> know of any corrections that should be made. I'll make them on the
> language HOWTO that I've got up.
>
> Copied from:
> http://xtrinsic.com/geek/articles/language.phtml
I had taken a cursory look at that page earlier in the week, but didn't
have time to respond then, and more or less forgot about what it contained.
It looks totally different today, though. In fact, it's totally unreadable
in Netscape 4.7 (the green box with the stuff on cookies and patches covers
about the first 1/4 of the text), so I had to view it in IE (IEuuuugh!).
...
> How to install a patch
>
> The following instructions are from Neil Kohl. Thanks Neil! :)
>
> * To apply the patch you need the htdig source code on your machine
> * and you must have permission to modify and create files in the
> * source directory.
> * Download and uncompress the patch, then copy it to the top of the
> * htdig source tree. Then run the patch command from the top of the
> * htdig source tree. patch applies the patches contained in the file
> * to the appropriate source code files and is usually run like this:
> patch -b < patch-file-name
I'm pretty sure all the htdig patches still need -p0 or -p1, for patch
to find the file names correctly. Otherwise, if I'm not mistaken, you
will have to give the file names one by one to the patch command as it
prompts you.
...
> > As far as I know, they're both the same patch. (Note to Joe: it might
> > make more sense to call it cookies.0.gz instead of cookies.gz.0.)
>
> Yea, it's just Joe's version of Gabriele's patch. The 0 has significance
> that was explained to me at one point, but I can't remember what it was
> now. (Version control, maybe?)
Yes, it's for version control. Joe increments the numeric extension
whenever a newer patch overrides an earlier one, and puts the older one
in the Old subdirectory.
> > Generally for a patch, you put yourself in the main souce directory and
> > then run a command like "patch -p0 < name-of-patch-file", or use -p1 if
> > the patch has an extra level of directory names in the target file names.
> > In the case of a compressed patch like this one, you can use:
> > zcat cookies.gz.0 | patch -p0
>
> Your instructions are essentially backwards from the ones I got (cat
> first, vs use > to output the actions of "patch")...I think?
I can't really comment on the instructions you got, as I haven't
seen them. The ones on your web page don't say anything about how to
uncompress the patch. In any case, you do need to uncompress the patch
before applying it, either with a pipe as I showed above, or with a
separate zcat or gunzip command before running patch. E.g.:
zcat cookies.0.gz > cookies.0 (or gunzip cookies.0.gz)
patch -p0 < cookies.0
You can redirect the output of patch if you'd like, to save its messages
into another file, but that's optional.
A few other nits to pick about your web page above:
- my surname is "Detillieux".
- there's a link to FAQ 4.10 that says 4.8 in the description text.
- the Config file section of Dealing with accents doesn't mention many
of the language-dependent attributes that should be set for a non-English
user interface.
Thanks for the tidbit about i18n - I always wondered what that meant!
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada)
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html