make-patches
raw| 1 | #!/bin/tcsh |
| 2 | |
| 3 | set files=`find . -name "*.orig"` |
| 4 | set patchfilelist="" |
| 5 | |
| 6 | foreach file ($files) |
| 7 | set modified=$file:r |
| 8 | set patchfile=$modified.patch |
| 9 | diff -u $file $modified > $patchfile |
| 10 | set patchfilelist = ($patchfilelist $patchfile) |
| 11 | end |
| 12 | |
| 13 | if ("$patchfilelist" != "") then |
| 14 | echo master.patch created |
| 15 | cat $patchfilelist > master.patch |
| 16 | else |
| 17 | echo no patches |
| 18 | endif |
| 19 |