diff options
author | pgollucci <pgollucci@FreeBSD.org> | 2009-04-30 05:16:43 +0800 |
---|---|---|
committer | pgollucci <pgollucci@FreeBSD.org> | 2009-04-30 05:16:43 +0800 |
commit | ac6fa5a23215742da4ec71003d9261f5919e4401 (patch) | |
tree | bd9d60575daecff942b671e6751ee79ca32143fd | |
parent | 51dd7fa6eaf1553f8d057191417460f5d2f0ff22 (diff) | |
download | freebsd-ports-gnome-ac6fa5a23215742da4ec71003d9261f5919e4401.tar.gz freebsd-ports-gnome-ac6fa5a23215742da4ec71003d9261f5919e4401.tar.zst freebsd-ports-gnome-ac6fa5a23215742da4ec71003d9261f5919e4401.zip |
- fix --port support
- don't change the Makefile if MAKE_JOBS_(UN)SAFE is already present
-rwxr-xr-x | Tools/scripts/mark_safe.pl | 4 |
1 files changed, 3 insertions, 1 deletions
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"; |