http://qs321.pair.com?node_id=657678


in reply to Re^2: Modifying %ENV From The Shebang Line
in thread Modifying %ENV From The Shebang Line

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 ]