aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2009-04-30 05:16:43 +0800
committerpgollucci <pgollucci@FreeBSD.org>2009-04-30 05:16:43 +0800
commitac6fa5a23215742da4ec71003d9261f5919e4401 (patch)
treebd9d60575daecff942b671e6751ee79ca32143fd /Tools/scripts
parent51dd7fa6eaf1553f8d057191417460f5d2f0ff22 (diff)
downloadfreebsd-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
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/mark_safe.pl4
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";