diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1999-06-22 06:41:39 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1999-06-22 06:41:39 +0000 |
commit | 9478eafe5e72fc80c1382f248ad295d57f61a3be (patch) | |
tree | de783140c6cb5b3e23f2ae17a9404750f9237e1f /Tools | |
parent | Delete the chroot dirs before starting the load average reporting (diff) |
Setup a client machine. Unmounts all read-only mounts that looks like
portbuild temporary mounts, deletes all the chroot dirs and copies the
portbuild script and the correct bindist tarball.
Notes
Notes:
svn path=/head/; revision=19625
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/setupnode | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/setupnode b/Tools/portbuild/scripts/setupnode new file mode 100755 index 000000000000..72dcb01908de --- /dev/null +++ b/Tools/portbuild/scripts/setupnode @@ -0,0 +1,11 @@ +#!/bin/sh +if [ $# != 3 ]; then + echo "usage: $0 master portbuilddir branch" + exit 1 +fi +if [ $(echo $(/sbin/mount | grep "$2/.*(read-only)" | awk '{print $3}' | wc -c)) != 0 ]; then + /sbin/umount -f $(/sbin/mount | grep "$2/.*(read-only)" | awk '{print $3}') +fi +rm -rf $2/*/chroot/* +scp -p -a $1:$2/scripts/portbuild $2/scripts +scp -p -a $1:$2/$3/tarballs/bindist.tar $2/$3/tarballs |