diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2002-03-09 23:05:48 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2002-03-09 23:05:48 +0000 |
commit | 0875e2f60df4c94267a729b472730ee00668ddce (patch) | |
tree | 4687a6b986ffa1b611ffa55de6e2f9f3fc9f8c17 /Tools | |
parent | 976b001efddcddf0fe0058dfc426469eac390a15 (diff) | |
download | ports-0875e2f60df4c94267a729b472730ee00668ddce.tar.gz ports-0875e2f60df4c94267a729b472730ee00668ddce.zip |
* Document the purpose of this script
* Don't display errors if the bindist tarball is not yet on the client
* Copy over some more files required to set up the client
Notes
Notes:
svn path=/head/; revision=55790
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/setupnode | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/setupnode b/Tools/portbuild/scripts/setupnode index 5c72e49e117c..a9ec030ca28c 100755 --- a/Tools/portbuild/scripts/setupnode +++ b/Tools/portbuild/scripts/setupnode @@ -1,4 +1,10 @@ #!/bin/sh +# +# Script run on the clients, to set them up in preparation for building +# packages. This includes setting up parts of the /var/portbuild +# directory hierarchy, the portbuild script and the bindist.tar file +# for populating the build chroots. + nocopy=0 if [ "x$1" = "x-nocopy" ]; then nocopy=1 @@ -27,9 +33,14 @@ killall make fetch >/dev/null 2>&1 mkdir -p $2/scripts $2/$3/tarballs $2/$3/chroot scp -p $1:$2/scripts/portbuild $2/scripts +scp -p $1:$2/portbuild.conf $2 + +scp -p $1:$2/$3/UNAME_TARGET $2/$3/tarballs/ if [ "$nocopy" = 0 ]; then - md5=$(/sbin/md5 $2/$3/tarballs/bindist.tar | awk '{print $4}') + if [ -f $2/$3/tarballs/bindist.tar ]; then + md5=$(/sbin/md5 $2/$3/tarballs/bindist.tar | awk '{print $4}') + fi if [ "$md5" = "$4" ]; then echo "not copying bindist to $(hostname -s) since it is already up to date" else |