1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-30 21:49:25 +00:00
freebsd-ports/Tools/portbuild/scripts/cpdistfiles
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

32 lines
705 B
Bash
Executable File

#!/bin/sh
# configurable variables
pb=/var/portbuild
. ${pb}/portbuild.conf
unset DISPLAY
# copy one distfile to remote host
cpdistfile () {
tar -C distfiles -cf - $1 | ssh $ftpsite -l $user tar -C $distfiledir -xvf -
}
echo "================================================"
echo "md5 generation started at $(date)"
cd $pb/bak/distfiles
find . -type f | sort | xargs md5 > ../../md5-2
echo "================================================"
echo "copying started at $(date)"
cd $pb/bak
for i in $(diff ../md5 ../md5-2 | grep '^>' | sed -e 's^.*(\./^^' -e 's/).*//'); do
cpdistfile $i
done
mv ../md5-2 ../md5
echo "================================================"
echo "all done at $(date)"