summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1999-09-11 00:11:12 +0000
committerSatoshi Asami <asami@FreeBSD.org>1999-09-11 00:11:12 +0000
commit0a15669df6c9cd2b11f02652cf90aa8025722536 (patch)
treec8ae578e93e008f95018678ef10cc17503ec9789 /Tools
parentChange OSREL and OSVERSION for 3 and 4 branches. (The ones for 3-stable (diff)
Add extra argument md5 for bindist.tar. Skip scp if md5 matches
what the client already has.
Notes
Notes: svn path=/head/; revision=21637
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/setupnode12
1 files changed, 9 insertions, 3 deletions
diff --git a/Tools/portbuild/scripts/setupnode b/Tools/portbuild/scripts/setupnode
index 72dcb01908de..d41a8422bcfd 100755
--- a/Tools/portbuild/scripts/setupnode
+++ b/Tools/portbuild/scripts/setupnode
@@ -1,6 +1,6 @@
#!/bin/sh
-if [ $# != 3 ]; then
- echo "usage: $0 master portbuilddir branch"
+if [ $# != 4 ]; then
+ echo "usage: $0 master portbuilddir branch md5"
exit 1
fi
if [ $(echo $(/sbin/mount | grep "$2/.*(read-only)" | awk '{print $3}' | wc -c)) != 0 ]; then
@@ -8,4 +8,10 @@ if [ $(echo $(/sbin/mount | grep "$2/.*(read-only)" | awk '{print $3}' | wc -c))
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
+md5=$(/sbin/md5 $2/$3/tarballs/bindist.tar | awk '{print $4}')
+if [ "$md5" = "$4" ]; then
+ echo "not copying bindist to $(hostname -s) since it is already up to date"
+else
+ echo "copying bindist to $(hostname -s)"
+ scp -p -a $1:$2/$3/tarballs/bindist.tar $2/$3/tarballs
+fi