1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/Tools/portbuild/scripts/cppackages
Satoshi Asami 0d088a094b Pull in configuration variables from /var/portbuild/portbuild.conf.
/var/portbuild is the new designated home of the portbuild setup, and
is expected to be a symlink to wherever you choose to put the stuff.

Also, change reportload to use /var/portbuild to store temporary files.
Seems there are some bugs in the null mount code that make the files
inaccessible if you are using an NFS root.
2000-09-27 01:41:44 +00:00

35 lines
519 B
Bash
Executable File

#!/bin/sh
# configurable variables
pb=/var/portbuild
. ${pb}/portbuild.conf
lock=${pb}/cppackages.lock
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 $ftpsite -l $user tar -C $packagedir -xvf - 2>&1 | tail -100
echo "Ended at $(date)"
rm -f ${lock}