#!/bin/sh [[ -e "$PORTDIR" ]] || PORTDIR=$(portageq envvar PORTDIR) [[ -e "$PKGDIR" ]] || PKGDIR=$(portageq envvar PKGDIR) if [[ $EBUILD_PHASE != "" ]]; then [[ $EBUILD_PHASE == postinst ]] && PRETEND="" || PRETEND=":" fi [[ $HOSTNAME == "" ]] && echo "wtf no hostname env set" ${PRETEND} rsync -a --delete-after --timeout=30 /etc/portage/ ${PKGDIR}/All/portage/ ${PRETEND} cp -a /etc/make.conf ${PKGDIR}/All/portage/ ${PRETEND} rsync -v -a --stats --delete-after --timeout=30 \ ${PKGDIR}/All/ \ ${HOSTNAME}@tinderbox.x86.dev.gentoo.org:/home/${HOSTNAME}/$(readlink -f /etc/make.profile | sed s@"${PORTDIR}/profiles/"@@)/