If the port directory contains a file called .keep, then tar up the

${WRKDIR} after the port build completes and copy it to
${arch}/${branch}/wrkdirs/${pkgname}.tbz.
This commit is contained in:
Kris Kennaway 2003-01-24 11:01:37 +00:00
parent 7b319b0944
commit 04a23345d0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=73937
2 changed files with 10 additions and 0 deletions

View file

@ -128,6 +128,12 @@ else
kill $(jobid %1)
fi
if [ -e ${dir}/.keep ]; then
cd ${dir}
objdir=$(make -V WRKDIR)
tar cvfjC /tmp/work.tbz ${objdir}/.. work
fi
echo "================================================================"
echo -n "build ended at "
date

View file

@ -253,6 +253,10 @@ if [ "${error}" = 0 ]; then
scp ${chroot}/tmp/${pkgname}.log ${user}@${master}:${pb}/${arch}/${branch}/logs/${pkgname}.log
error=$(cat ${chroot}/tmp/status)
if [ -e ${chroot}/tmp/work.tbz ]; then
scp ${chroot}/tmp/work.tbz ${user}@${master}:${pb}/${arch}/${branch}/wrkdirs/${pkgname}.tbz
fi
if [ "${error}" = 0 ]; then
tar -C ${chroot}/tmp -cf - packages | \
ssh -a -x ${user}@$master tar --unlink -C ${pb}/${arch}/${branch} -xvf -