moooster
26th May 2004 08:16 UTC
patching a whole directory
I've searched high and low for a complete way to do complete recursive directory patches, but have been unable to find anything. I want to be able to feed it an old directory say 'version1.3' and a new 'version1.5' dir and have it :
* patch files (using vpatch?)
* remove files that should no longer exist (vpatch doesn't do this)
* add new files (nor this)
Has someone done this with a perl script or anything?
TIA
kichik
28th May 2004 09:39 UTC
As the user won't have both versions on his computer, the decision of what to patch and what to remove should be done on your computer. You should therefore write a program that will create the script for you, comparing two directories. This could be done with a simple NSIS installer that gets two directories using InstallOptions and compares them (FindFirst, FindNext, FindClose, GetFileTime, IfFileExists, etc.).
moooster
28th May 2004 09:55 UTC
That's a neat solution I didn't think of. I've written a perl script that does the comparisons and generates the file details of a NSIS script.
Thanks for the help and a badass program.