Here’s a command I wrote for DS lib, it goes in as /secure/cmds/admins/diffit.c and responds to the “diffit” and “help diffit” commands.
Steps to use:
- When an upgrade is available, do a `liveupgrade all`
- Once it has finished downloading, do a `diffit`. You will be prompted for each file that is being upgraded to [K]eep the current version, or [R]eplace it with the new version.
- Once finished, see /log/diff.log for errors, and /log/diffkeep.log for files you chose to [K]eep (You will need to upgrade these files manually).
- “More” for long diffs