pkgsrc/mk/bulk/do-sandbox-build
rillig 63d76b7f93 Fixed the quoting. The shell is hard-coded to /bin/sh instead of relying
on which(1). Correctly pass all arguments (even the first one) to the
build script. This fixes PR 30362.
2005-06-27 16:04:08 +00:00

14 lines
292 B
Bash

#!/bin/sh
# $NetBSD: do-sandbox-build,v 1.11 2005/06/27 16:04:08 rillig Exp $
#
# Script to start a sandbox build
#
# See pkgsrc/doc/pkgsrc.txt for documentation!
#
sh="/bin/sh"
build="mk/bulk/build"
chroot /usr/sandbox \
$sh -c "cd /usr/pkgsrc && exec $sh $build \"\$@\"" -- $build "$@"