Allow user-specified programs to override system-installed ones
(manually tested) - new rc var: GL_BINDIR2; see doc update in this commit - added _which() function to search both $GL_BINDIR and $GL_BINDIR2 - 'gitolite <command>', non-perl triggers, VREFs, and sugar, use this - unshifted $GL_BINDIR2/lib into @INC upfront in Rc.pm - perl triggers use this
This commit is contained in:
parent
cd37fe7c36
commit
3c0f177481
5 changed files with 52 additions and 17 deletions
|
@ -61,8 +61,8 @@ sub check_vrefs {
|
|||
}
|
||||
} else {
|
||||
my ( $dummy, $pgm, @args ) = split '/', $vref;
|
||||
$pgm = "$ENV{GL_BINDIR}/VREF/$pgm";
|
||||
-x $pgm or _die "'$vref': helper program missing or unexecutable";
|
||||
$pgm = _which("VREF/$pgm", 'x');
|
||||
$pgm or _die "'$vref': helper program missing or unexecutable";
|
||||
|
||||
open( my $fh, "-|", $pgm, @_, $vref, @args ) or _die "'$vref': can't spawn helper program: $!";
|
||||
while (<$fh>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue