How to add multiple SVN hooks

I have several (in this case, pre-commit) hooks that I would like to fire during the same event. Right now, they are all just shell scripts, so I know that I can just concatenate them to make them all work. In the future, however, additional scripts may be written in Perl, PHP, or some other language.

How can I run several different scripts as part of a single hook and have some kind of substrate malfunction, not working as expected?

+3
source share
3 answers

Unlike the solution based on @Gnustavo Perl, I also found some other (PHP based) systems, such as

( "SVN Hooks" ) , .

0

script pre-commit script SVN:

#!/bin/sh

sh do_this.sh
php do_that.php
...

(sh php), shebang.

+1

You can try SVN :: Hooks Perl module, which allows you to implement and integrate many hooks in one configuration file, which can even be stored in one repository.

(Disclosure: I am the author of this module.)

+1
source

Source: https://habr.com/ru/post/1747333/


All Articles