You are not logged in.

#1 2005-12-29 15:11:29

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

how to use this file - patch, rcs, ?

Hey,

Now I'm sure this is probably a stupid question but I can't make this apply as a patch although there is every chance I'm doing it wrong. So is it a patch? Is it a script or something to use with RCS or CVS or something that might even check out the files at the correct revision for me? I'd really like to give it a try and I have half the day off tomorrow which would be perfect. If I do a standard CVS checkout or the repo I don't get the

ChangeLog    2 Dec 2005 18:42:31 -0000    1.72

lines at the top of the files so I'm guessing that maybe I'm doing that wrong? Any help with this would be very much appreciated.

file in question

TIA smile

Offline

#2 2005-12-29 16:12:48

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: how to use this file - patch, rcs, ?

patch fully supports text above the +++/--- stuff.  The original intent was to allow patches to be included in plain text at the bottom of emails/newsgroup posts.

This *is*, in fact, a unified diff, so you need to add -u to the patch command to make it work.

Offline

#3 2005-12-29 16:12:58

tgc
Member
From: DK
Registered: 2004-03-09
Posts: 96

Re: how to use this file - patch, rcs, ?

Yes, this  is a patch. Save it as a file like this: libbtctl.patch
Move to the source folder and apply it like this:

"patch -i libbtctl.patch -p0"

If the folder structure is a pain, "-p0" option can be changed to "-p1" etc to ignore 0,1, or more of folders in the path.

See "man patch" for more options.

Offline

#4 2005-12-29 22:34:11

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: how to use this file - patch, rcs, ?

Thanks for the help guys, works fine big_smile

Offline

Board footer

Powered by FluxBB