From 04a23345d0d18a76c66d70d2c9934130148bfc8b Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Fri, 24 Jan 2003 11:01:37 +0000 Subject: 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. --- Tools/portbuild/scripts/buildscript | 6 ++++++ Tools/portbuild/scripts/portbuild | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'Tools') diff --git a/Tools/portbuild/scripts/buildscript b/Tools/portbuild/scripts/buildscript index 1a5e90e25f92..cb0096098ec3 100755 --- a/Tools/portbuild/scripts/buildscript +++ b/Tools/portbuild/scripts/buildscript @@ -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 diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild index 6b1148bd0dab..42b10c0ab780 100755 --- a/Tools/portbuild/scripts/portbuild +++ b/Tools/portbuild/scripts/portbuild @@ -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 - -- cgit v1.2.3