mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
f4528a378f
into the main build scripts yet so you need to call this one manually.
36 lines
543 B
Bash
Executable File
36 lines
543 B
Bash
Executable File
#!/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}
|