That was also one of the solutions I posted. It does indeed work, but it seems crufty. For every Perl hook script I write, I've got to write a shell layer to kick it off. The layers could probably be symbolic links to a common script. If that's the best I can do, I can live with it. I just thought there was a better way, given the sneaky shebangs in perlrun.
Thanks,
Jim | [reply] [d/l] |
One environment-fixing wrapper, as shown, but taking an argument that specifies which perl hook script to be run.
#!/bin/bash
export LD_LIBRARY_PATH=...
export HOOKS_PATH=/path/to/svn/hooks
[ -f $HOOKS_PATH/$1 ] && perl $HOOKS_PATH/$1
-- [ e d @ h a l l e y . c c ]
| [reply] [d/l] |