diff options
author | Satoshi Asami <asami@FreeBSD.org> | 2000-08-29 07:58:44 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 2000-08-29 07:58:44 +0000 |
commit | f4528a378f67bf8db6b355e310c2cc79fd37ced2 (patch) | |
tree | 16b0b23f3ed6dd506f352d4749e69db90a05bf10 /Tools | |
parent | 0a59f74d84e490ef5f2fddb6cb3d9c80b3ae275f (diff) |
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.
Notes
Notes:
svn path=/head/; revision=32076
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/cppackages | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/cppackages b/Tools/portbuild/scripts/cppackages new file mode 100755 index 000000000000..f5eb1fd2edd4 --- /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} |