summaryrefslogtreecommitdiff
path: root/mk/bulk/do-sandbox-build
blob: 31c2df1e2f788f00f78fa76bef7ba6db068940ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#	$NetBSD: do-sandbox-build,v 1.12 2005/07/13 22:07:46 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 "$@"