Diffs is a perl script to generate unix diffs in the format that will be accepted as patched by SPW. It is available [http://purl.net/net/spw/spw.pl?action=showfile&path=\/spw\/diffs here]. The syntax is <code>diffs orig_file_copy modified_file > patch_file</code>, for example, :<code>diffs spw_main.pl.old spw_main.pl > my_patch</code> All it does is run the unix <code>diff -C2 </code> command and then alter the paths in the diff so that they will work with the command <code>patch -d/ -p0</code> which SPW will use. If you want to, you can just run <code>diff -C2</code> instead of <code>diffs</code> and then edit the paths yourself; the final paths should be absolute paths in SPW's file system, i.e. something like <code>/spw/bin/spw_main.pl</code>). ---- CategoryScript
Summary:
This change is a minor edit.
To save this page you must answer this question:
What is the first even number?
Username: