From 1a74df2992e21e59cd0700c6af68a3ad66be937b Mon Sep 17 00:00:00 2001 From: asami Date: Tue, 29 Aug 2000 07:58:44 +0000 Subject: A small script to copy packages over to the ftp site. It is not integrated into the main build scripts yet so you need to call this one manually. --- Tools/portbuild/scripts/cppackages | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 Tools/portbuild/scripts/cppackages (limited to 'Tools') diff --git a/Tools/portbuild/scripts/cppackages b/Tools/portbuild/scripts/cppackages new file mode 100755 index 0000000..f5eb1fd --- /dev/null +++ b/Tools/portbuild/scripts/cppackages @@ -0,0 +1,35 @@ +#!/bin/sh + +# configurable variables +rhost=ftp.freebsd.org +ruser=asami +rdir=w/ports/i386/tmp +pb=/a/asami/portbuild + +lock=${pb}/cppackages + +unset DISPLAY + +echo "Subject: package copying logs" +echo +echo "Called with arguments: "${1+"$@"} +echo "Started at $(date)" + +if [ $# != 1 ]; then + echo "usage: $0 branch" + exit 1 +fi + +if [ -e ${lock} ]; then + echo "Skipped since lock file exists" + exit 1 +fi + +touch ${lock} + +cd $pb +tar -cf - $1/packages | ssh $rhost -l $ruser tar -C $rdir -xvf - 2>&1 | tail -100 + +echo "Ended at $(date)" + +rm -f ${lock} -- cgit v1.1