diff options
author | kris <kris@FreeBSD.org> | 2003-01-24 12:47:17 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-01-24 12:47:17 +0800 |
commit | 6dc80391de9aa2eeca05898dd898b8b42239ae72 (patch) | |
tree | f6a904da02057da8a2b72c6417bebdacd9d21e70 /Tools/portbuild/scripts | |
parent | 15a020906d3f4c044c059843eee92e40b961f987 (diff) | |
download | freebsd-ports-graphics-6dc80391de9aa2eeca05898dd898b8b42239ae72.tar.gz freebsd-ports-graphics-6dc80391de9aa2eeca05898dd898b8b42239ae72.tar.zst freebsd-ports-graphics-6dc80391de9aa2eeca05898dd898b8b42239ae72.zip |
- Use ${arch}
- Mount on ${master} instead of localhost
Diffstat (limited to 'Tools/portbuild/scripts')
-rwxr-xr-x | Tools/portbuild/scripts/mkbindist | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Tools/portbuild/scripts/mkbindist b/Tools/portbuild/scripts/mkbindist index c76bd986207..24bcd717149 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 |