From 8c4e99a69f085cf511c09173f56964797a69f54d Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 13 Oct 2013 05:02:43 +0200 Subject: fix installing libexec scripts issue is that urpmi matches urpmi.* too (hence urpmi.update too) in first regexp => reverse regexpes order --- Makefile.PL | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index ed39b155..129d1a1a 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -45,10 +45,10 @@ sub top_targets { sub installbin { my $self = shift; my $inherited = $self->SUPER::installbin(@_); - my $s = join '|', map quotemeta, @sbin_scripts; - $inherited =~ s{\$\(INST_SCRIPT\)/($s)}{\$(INST_SBIN)/$1}g; - $s = join '|', map quotemeta, @libexec_scripts; + my $s = join '|', map quotemeta, @libexec_scripts; $inherited =~ s{\$\(INST_SCRIPT\)/($s)}{\$(INST_LIBEXEC)/$1}g; + $s = join '|', map { quotemeta($_) . '\s' } @sbin_scripts; + $inherited =~ s{\$\(INST_SCRIPT\)/($s)}{\$(INST_SBIN)/$1}g; # how to create needed directories under blib $inherited .= $self->dir_target("\$(INST_$_)") for qw(SBIN LIBEXEC MAN5DIR MAN8DIR); $inherited; -- cgit v1.2.1