These are the steps to make it work:
Create and compile c program that will perform svn update, and save it somewhere let's say in /svn/autoupdate- #include <stddef.h>
- #include <stdlib.h>
- #include <unistd.h>
- int main(void)
- {
- execl("/usr/local/bin/svn", "svn", "update",
- "${dirNameToUpdate}",
- (const char *) NULL);
- return(EXIT_FAILURE);
- }
- </unistd.h></stdlib.h></stddef.h>
Add post-commit to svnrepo/hooks where compiled c program is referenced:- #!/bin/sh
- /svn/autoupdate/autoupdate
- chmod +x post-commit
Try to commit something to svn on remote server and watch svn hooks magic in action.