mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
18 lines
292 B
Plaintext
18 lines
292 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
distdir=$1
|
||
|
while true; do
|
||
|
if cd ${distdir}/.pbtmp >/dev/null 2>&1; then
|
||
|
set *
|
||
|
while [ $# -gt 0 ]; do
|
||
|
if [ -e $1/.done ]; then
|
||
|
rm -f $1/.done
|
||
|
tar -C $1 -cf - . | tar -C ${distdir} -xpf -
|
||
|
rm -rf $1
|
||
|
fi
|
||
|
shift
|
||
|
done
|
||
|
fi
|
||
|
sleep 600
|
||
|
done
|