The patch files are just plain text. Unless you know how to operate svn,
it's easier to apply these small patches by hand.
First you need a sourcecode editor that can handle both linux and dos style linefeeds (LF / CR+LF)
Personally i use Notepad++ (just google it, it's on sourceforge), but there's lots of choice.
Now here - as an example - is the beginning of rawaverage.patch:
Index: core/luascript.c
===================================================================
--- core/luascript.c (revision 586)
+++ core/luascript.c (working copy)
@@ -10,6 +10,8 @@
#include "shot_histogram.h"
#include "ubasic.h"
#include "stdlib.h"
+#include "raw.h"
+#include "raw_merge.h"
static int luaCB_shoot( lua_State* L )
{
'translation': after
--- : the file were operating on
+++ : the resulting file
@@ : the first 10 here means goto line 10
the 3 #include lines are the lines before your changes
then come your changes, lines starting + are added , with - are removed (here 2 lines are added)
next come 3 lines after your changes
if theres more changes in this file, it continues with another @@
etc
hope that helps,
wim
PS as you will see if you use 587 this won't work (or at least, line numbers might not match)
a patch always needs to be applied to the version that is mentioned after ---, in this case 586
to DL a previous version, go here:
/trunk - chdk - Trac and type
the version number you want in the edit box named 'View Revision' and type enter (top right)
then goto center bottom of the page to where it says 'Download in other formats' and click
'Zip Archive' -> your DL should start