diff options
author | des <des@FreeBSD.org> | 2001-12-18 11:49:14 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-12-18 11:49:14 +0000 |
commit | 2213f02ec6b035596df932d8e6fb0ec33db028cf (patch) | |
tree | 3b179176e677da3ec92eaf5ec9200346c42ec571 /misc/porteasy/src | |
parent | c831c6cb77e9c0cad449ba06438af9ad74b33cba (diff) | |
download | FreeBSD-ports-2213f02ec6b035596df932d8e6fb0ec33db028cf.zip FreeBSD-ports-2213f02ec6b035596df932d8e6fb0ec33db028cf.tar.gz |
2.6.1: Some ports (e.g. www/mozilla-embedded) use MAINDIR instead of
MASTERDIR to achieve slightly different semantics. Handle this just like
we handle MASTERDIR.
Diffstat (limited to 'misc/porteasy/src')
-rw-r--r-- | misc/porteasy/src/porteasy.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/porteasy/src/porteasy.pl b/misc/porteasy/src/porteasy.pl index 7bad387..2798b02 100644 --- a/misc/porteasy/src/porteasy.pl +++ b/misc/porteasy/src/porteasy.pl @@ -33,7 +33,7 @@ use strict; use Fcntl; use Getopt::Long; -my $VERSION = "2.6"; +my $VERSION = "2.6.1"; my $COPYRIGHT = "Copyright (c) 2000 Dag-Erling Smørgrav. All rights reserved."; # Constants @@ -470,7 +470,7 @@ sub find_master($) { open(FILE, "$portsdir/$port/Makefile") or bsd::err(1, "unable to read Makefile for $port"); while (<FILE>) { - if (/^MASTERDIR\s*=\s*(\S+)\s*$/) { + if (/^(?:MAIN|MASTER)DIR\s*=\s*(\S+)\s*$/) { $master = $1; } elsif (/^\.?include \"([^\"]+)\/Makefile\"\s*$/) { $master = $1; |