PmWiki uses the external programs
diff and
patch to store and restore previous versions of pages. While these programs are commonly available on most Unix systems, they are generally not available under Windows.
WinDiff (
http://www.pmichaud.com/pub/windiff/windiff.zip) is a special package containing Windows versions of the
diff and
patch programs from the
Gnuwin32 project [
http://www.sourceforge.net/projects/gnuwin32]. To use this package, simply create a
windiff/ subdirectory in the directory that holds your
pmwiki.php script and copy the files from the
zip archive [
http://www.pmichaud.com/pub/windiff/windiff.zip] into that directory. Then, add the following lines to your
local/config.php file:
$SysDiffCmd
= 'windiff\\diff';
$SysPatchCmd
= 'windiff\\patch --silent';
That should be all there is to it! Questions and comments can be sent to
pmwiki-users@pmichaud.com.
Those with MSys already installed may find the following config lines helpful:
$SysDiffCmd
= 'C:/msys/1.0/bin/diff.exe';
$SysPatchCmd
= 'C:/msys/1.0/bin/patch.exe';
Thx! I also make my copy of Tavi on Win32 works with Diff now!
(i.e. Tavi works with the Diff from PmWiki's but not from
GNU utilities for Win32 [
http://unxutils.sourceforge.net/] nor
Gnuwin32 project [
http://gnuwin32.sourceforge.net/packages/diffutils.htm])
-- AaronLaw , 2004-06-26 10:50