summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-01-24 11:01:37 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-01-24 11:01:37 +0000
commit04a23345d0d18a76c66d70d2c9934130148bfc8b (patch)
tree87705c833c761f84b218897e824ed0b383eac09b /Tools
parentThe handbook is no longer installed if the RES_GER variable is missing. (diff)
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.
Notes
Notes: svn path=/head/; revision=73937
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/buildscript6
-rwxr-xr-xTools/portbuild/scripts/portbuild4
2 files changed, 10 insertions, 0 deletions
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 -