summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorNeil Blakey-Milner <nbm@FreeBSD.org>2001-04-02 10:35:29 +0000
committerNeil Blakey-Milner <nbm@FreeBSD.org>2001-04-02 10:35:29 +0000
commit029193aa5d41392adc57353bab4d4db8469d2de4 (patch)
treefcb135627f5ca07e1f427868769f10b77237819b /Tools
parentUpdate where to go to download the socks5 distfile (diff)
Steal the 'hmake' variable building from mkpinstall. This wasn't
properly fixing the username in the *OWN variables passed to make(1).
Notes
Notes: svn path=/head/; revision=40741
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/mkptools/mkpbuild10
1 files changed, 6 insertions, 4 deletions
diff --git a/Tools/scripts/mkptools/mkpbuild b/Tools/scripts/mkptools/mkpbuild
index 996d527547f6..52537912ff8d 100755
--- a/Tools/scripts/mkptools/mkpbuild
+++ b/Tools/scripts/mkptools/mkpbuild
@@ -53,10 +53,12 @@ $tmpdir = "$tmpbase/$user.$portname";
$wdpdir = "$tmpdir/wdp";
$predir = "$tmpdir/prefix";
-$hmake = "env WRKDIRPREFIX=$wdpdir " .
- "{SHARE,MAN,LIB,BIN}{OWN,GRP}=$user " .
- "PREFIX=$predir NO_PKG_REGISTER=1 make";
-
+$hmake = "env WRKDIRPREFIX=$wdpdir PREFIX=$predir NO_PKG_REGISTER=1 ";
+foreach (qw"SHARE MAN LIB BIN") {
+ $hmake .= $_ . "OWN=$user ";
+ $hmake .= $_ . "GRP=$user ";
+}
+$hmake .= "PREFIX=$predir NO_PKG_REGISTER=1 make";
open(BUILD, "$hmake |");
while(<BUILD>) {