command line options for individual diff reports in html
Posted: Wed Oct 20, 2004 12:37 am
I would like to write a batch file which runs through subdirectories and outputs individual file differences to HTML format into a different directory.
In other words, compare directory1(and subdirectories) with directory2(and subdirectories) and output the differences of each file to a 3rd directory(and subdirectories).
The directory structures are the same and it is assumed that the files contained within those (sub)directories have same names.
The diff reports are used in software upgrades to see what changes were made in the files (*.c and *.h)
I can get the output but all changes are logged to one file. I would like only files that have differences logged. I noticed as well that the HTML output is not always correct (“<” are picked up as tags) so the formatting of the HTML output is not quite accurate.
Hope u can help,
Thanx in advance,
Genx
In other words, compare directory1(and subdirectories) with directory2(and subdirectories) and output the differences of each file to a 3rd directory(and subdirectories).
The directory structures are the same and it is assumed that the files contained within those (sub)directories have same names.
Code: Select all
directory1 directory2
|- subdir_1 |- subdir_1
|- file_1 |- file_1
|- .. |- ..
|- file_x |- file_x
|- |-
|- ... <========> |- ...
|- | |-
|- subdir_x | |- subdir_x
|- file_1 | |- file_1
|- .. | |- ..
|- file_x | |- file_x
|
|
(output in html)
|
|
\/
directory3
|- subdir_1
|- file_1.html
|- ..
|- file_x.html
|-
|- ...
|-
|- subdir_x
|- file_1.html
|- ..
|- file_x.html
I can get the output but all changes are logged to one file. I would like only files that have differences logged. I noticed as well that the HTML output is not always correct (“<” are picked up as tags) so the formatting of the HTML output is not quite accurate.
Hope u can help,
Thanx in advance,

Genx