aboutsummaryrefslogtreecommitdiff
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-01-24 04:47:17 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-01-24 04:47:17 +0000
commit225546e3a1820dbbc05b4c63f10630e549121cfd (patch)
tree03fcaca92c11d7e7f643e47e2d27d5a2f2de3648 /Tools/portbuild
parentd80ddb3e6d9e7a6f6f13c1f1a126df3bee80291b (diff)
downloadports-225546e3a1820dbbc05b4c63f10630e549121cfd.tar.gz
ports-225546e3a1820dbbc05b4c63f10630e549121cfd.zip
Notes
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-xTools/portbuild/scripts/mkbindist13
1 files changed, 7 insertions, 6 deletions
diff --git a/Tools/portbuild/scripts/mkbindist b/Tools/portbuild/scripts/mkbindist
index c76bd9862070..24bcd7171498 100755
--- a/Tools/portbuild/scripts/mkbindist
+++ b/Tools/portbuild/scripts/mkbindist
@@ -1,22 +1,23 @@
#!/bin/sh
usage () {
- echo "usage: mkbindist <branch>"
+ echo "usage: mkbindist <arch> <branch>"
exit 1
}
-if [ $# != 1 ]; then
+if [ $# != 2 ]; then
usage
fi
-branch=$1
+arch=$1
+branch=$2
if [ "x$branch" != x4 -a "x$branch" != x4-exp -a "x$branch" != x5 ]; then
usage
fi
pb=/var/portbuild
-. ${pb}/portbuild.conf
+. ${pb}/${arch}/portbuild.conf
-here=${pb}/${branch}
+here=${pb}/${arch}/${branch}
. ${here}/mkbindist.conf
tmpdir=${here}/tmp
@@ -90,7 +91,7 @@ fi
# updated during the port build process, which is
# usually newer than the host environment and the chroot.
-mount localhost:${here}/src ${tmpdir}/usr/src
+mount ${master}:${here}/src ${tmpdir}/usr/src
sleep 5 # XXX !!!
# Cater to different build locations of 4.x and 5.x