1 |
This little util will let you extract certain chunks of certain |
this little util will let you extract certain chunks of certain |
2 |
'subpatches' of a patch file. the command line parameters is simple; you |
'subpatches' of a patch file. the command line parameters is simple; you |
3 |
specify a list of filematches, each one followed by the list of chunks |
specify a list of filematches, each one followed by the list of chunks |
4 |
to be extracted. for example, if you want to extract the 2nd and 5th |
to be extracted. if the list is empty, then all the chunks will be |
5 |
chunk of the subpatcha for the 'afile' file and the 1sf, 3rd and 10th |
printed. for example, if you want to extract the 2nd and 5th chunk of |
6 |
chunk of the subpatch for 'bfile', use: |
the subpatch for the 'afile' file and the 1sf, 3rd and 10th chunk of the |
7 |
|
subpatch for 'bfile', use: |
8 |
|
|
9 |
patchfilter orig.patch afile 2 5 bfile 1 3 10 |
patchfilter orig.patch afile 2 5 bfile 1 3 10 |
10 |
|
|
18 |
|
|
19 |
+ also 'unpatch lines that start with '-+' or '+-' (which would mean |
+ also 'unpatch lines that start with '-+' or '+-' (which would mean |
20 |
to 'undo' what's done by the patch. |
to 'undo' what's done by the patch. |
|
+ a empty chunk list means all the chunks. |
|
21 |
|
|
22 |
(c) 2002 StyXman (aka. mdione aka Marcos Dione) |
(c) 2002 StyXman (aka. mdione aka Marcos Dione) |