You should note, that this is with Linux commands, where I will use wget for example, to download the tarballs, and tar to unpack it - so if you use Windows, and have compiled/downloaded a Windows version of diff/patch just unpack and download normally like windows.
Create a directory for temporary use, and change into it:
redeeman@redeeman $ mkdir WikiUpgrade redeeman@redeeman $ cd WikiUpgrade
Download the two versions of DokuWiki, your current and the version you desire to upgrade to (note, the output of wget I removed)
redeeman@redeeman $ wget http://www.splitbrain.org/Programming/PHP/DokuWiki/dokuwiki-2005-07-01.tgz redeeman@redeeman $ wget http://www.splitbrain.org/Programming/PHP/DokuWiki/dokuwiki-2005-07-13.tgz
Unpack tarballs:
redeeman@redeeman $ tar -xzf dokuwiki-2005-07-01.tgz redeeman@redeeman $ tar -xzf dokuwiki-2005-07-13.tgz
Create patch:
redeeman@redeeman $ diff -Naur dokuwiki-2005-07-01 dokuwiki-2005-07-13 > doku.diff
Run patch command with –dry-run to see affected files (NOTE, I have copied a version of my wiki into the WikiUpgrade dir for the purpose of this howto, dir is called “wiki”)
redeeman@redeeman $ cd wiki redeeman@redeeman $ patch -p1 <../doku.diff --dry-run patching file VERSION patching file conf/wordblock.conf patching file inc/actions.php patching file inc/io.php patching file inc/lang/cs/admin.txt patching file inc/lang/cs/admin_acl.txt patching file inc/lang/cs/lang.php patching file inc/lang/en/lang.php patching file inc/lang/no/lang.php patching file inc/parser/handler.php patching file inc/parser/xhtml.php patching file inc/template.php patching file lib/exe/spellcheck.php patching file lib/scripts/spellcheck.js
Here we can see which files it intends to upgrade, and since I haven't touched any of those, I'm happy! And accepts!
Apply Patch
redeeman@redeeman $ patch -p1 <../doku.diff patching file VERSION patching file conf/wordblock.conf patching file inc/actions.php patching file inc/io.php patching file inc/lang/cs/admin.txt patching file inc/lang/cs/admin_acl.txt patching file inc/lang/cs/lang.php patching file inc/lang/en/lang.php patching file inc/lang/no/lang.php patching file inc/parser/handler.php patching file inc/parser/xhtml.php patching file inc/template.php patching file lib/exe/spellcheck.php patching file lib/scripts/spellcheck.js
And now wiki is upgraded!