From ac6fa5a23215742da4ec71003d9261f5919e4401 Mon Sep 17 00:00:00 2001 From: pgollucci Date: Wed, 29 Apr 2009 21:16:43 +0000 Subject: - fix --port support - don't change the Makefile if MAKE_JOBS_(UN)SAFE is already present --- Tools/scripts/mark_safe.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Tools') diff --git a/Tools/scripts/mark_safe.pl b/Tools/scripts/mark_safe.pl index b9623a5c8039..134f5596dc59 100755 --- a/Tools/scripts/mark_safe.pl +++ b/Tools/scripts/mark_safe.pl @@ -121,6 +121,8 @@ sub mark { open my $mk, '<', $mfile or die "Can't open [$mfile] b/c [$!]"; my @lines = <$mk>; close $mk or die "Can't close [$mfile] b/c [$!]"; + + next if grep { /MAKE_JOBS_(?:UN)?SAFE/ } @lines; my $i_depends = 0; my $i_comment = 0; @@ -157,7 +159,7 @@ sub ports_get { my @ports = (); if ($Ports) { - @ports = @ARGV; + @ports = map { "$PORTSDIR/$_" } @ARGV; } else { my $index = "$PORTSDIR/$Index"; -- cgit