aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>2000-03-22 02:30:40 +0800
committerasami <asami@FreeBSD.org>2000-03-22 02:30:40 +0800
commit5c156ad2c0bcd22ef4257f713e9ee0e0ec4a300b (patch)
treeb66ad777c8c38f877e4b1598d3f07e8aba240627
parent1eee69d3c6d32a03a4a4330ab61988c822d74f95 (diff)
downloadfreebsd-ports-gnome-5c156ad2c0bcd22ef4257f713e9ee0e0ec4a300b.tar.gz
freebsd-ports-gnome-5c156ad2c0bcd22ef4257f713e9ee0e0ec4a300b.tar.zst
freebsd-ports-gnome-5c156ad2c0bcd22ef4257f713e9ee0e0ec4a300b.zip
(1) Be a little less picky about finding read-only mounts.
(2) Create directories before trying to copy files over. (3) There's no -a option to scp anymore.
-rwxr-xr-xTools/portbuild/scripts/setupnode10
1 files changed, 6 insertions, 4 deletions
diff --git a/Tools/portbuild/scripts/setupnode b/Tools/portbuild/scripts/setupnode
index ff876b6f2f80..e757008a645f 100755
--- a/Tools/portbuild/scripts/setupnode
+++ b/Tools/portbuild/scripts/setupnode
@@ -3,8 +3,8 @@ 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
- /sbin/umount -f $(/sbin/mount | grep "$2/.*(read-only)" | awk '{print $3}')
+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
if ! rm -rf $2/*/chroot/* >/dev/null 2>&1; then
@@ -12,11 +12,13 @@ if ! rm -rf $2/*/chroot/* >/dev/null 2>&1; then
rm -rf $2/*/chroot/*
fi
-scp -p -a $1:$2/scripts/portbuild $2/scripts
+mkdir -p $2/scripts $2/$3/tarballs $2/$3/chroot
+
+scp -p $1:$2/scripts/portbuild $2/scripts
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
+ scp -p $1:$2/$3/tarballs/bindist.tar $2/$3/tarballs
fi