but I don't know how
You correctly say that you have to do it by post-commit, but if you mean you don't know the process, here is how.
Your post-commit hook is a script which is called after every commit to a project in your SVN repository. There is a file called post-commit
in the hooks folder of every repository. Change the file to include the necessary commands* to do the copying for you and make it an executable post-commit.exe
.
Afterwards, every time you commit a new revision, that script should handle it for you.
*By necessary commands I mean, either do the copying via the Windows cmd prompt, or call another script to do the job from within post-commit.exe
.
Also, even though SVN docs mention that the post-commit hook needs to be either .bat
or .exe
file, I've had it working only when it's .exe
on my machine.
You can convert .bat
files into binary .exe
using tools available here and here. The second one is much more user-friendly. I hope it helps.