diff options
author | kris <kris@FreeBSD.org> | 2003-01-24 11:01:37 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-01-24 11:01:37 +0000 |
commit | 3f00c0b2379628b8cca3b81e6fd7385c0a0f070f (patch) | |
tree | a30a2747df3c3d9bcd567d114855df99a9455b68 /Tools | |
parent | 3b5f69839db954b23995eab05c250d1a4f85c011 (diff) | |
download | FreeBSD-ports-3f00c0b2379628b8cca3b81e6fd7385c0a0f070f.zip FreeBSD-ports-3f00c0b2379628b8cca3b81e6fd7385c0a0f070f.tar.gz |
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.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/buildscript | 6 | ||||
-rwxr-xr-x | Tools/portbuild/scripts/portbuild | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/buildscript b/Tools/portbuild/scripts/buildscript index 1a5e90e..cb00960 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 6b1148b..42b10c0 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 - |