Quote:
Originally Posted by diba
AddOn: "# Start updatewait in background and exit" is already # in the original file.
|
As it should be, that is a comment about what that part of the code does, not a command to do something.
Making an auto-change thing:
Put both files (under two names, the old one append ".old") in the same directory ;
diff -u filename.old filename ;
save the result as filename-something_distinctive.patch ;
write an "install" script that includes the command:
patch -p0 < filename-something_distinctive.patch
Automate as desired.
(the un-instal would be: patch -p0 -R < filename-something_distinctive.patch)
see the manual entry:
man patch
or google for the same.