https://www.icyphoenix.com/viewtopic.php?f=32&t=4134&p=28054#p28054
-----------------------------------
Mighty Gorgon
Sat 26 Apr, 2008 22:53

Diff Renderer
-----------------------------------
Hi all.
I have created ModX diff renderer to easily create code changes packages.

Original Discussion here: http://www.phpbb.com/community/viewtopic.php?f=71&t=804975

My instructions: http://www.phpbb.com/community/viewtopic.php?p=5162335#p5162335

Download: http://www.icyphoenix.com/_release/mg_diff_tools_modx_20080417.zip

To use it you have to:
[list=1][*]Download and unpack this ZIP into your site or your local testing environment.
[*]CHMOD to 0777 the folder where [b]modx_file.php[/b] is, otherwise you won't be able to create the XML output file.
[*]Create two folders to be compared: one with the original files and one with the changed files.
[*]Open and edit this part of [b]modx_file.php[/b] to correctly set the path of the previously created folders:
[code]$original_path = '../_diff/bp128/';
$working_path = '../_diff/bp129/';
$modx_file = 'install.xml';[/code]
[*]Open and edit [b]modx_template_header.php[/b] adding description of your mod and your datas.
[*]Launch in your browser [b]modx_file.php[/b].
[*]The XML file will be created in the same folder where you have [b]modx_file.php[/b].[/list]

Currently it doesn't add new files to be copied... but may be easily added.


Special thanks to [url=http://www.phpbb.com/community/memberlist.php?mode=viewprofile&u=222905]evil<3 for having started and created this.


