freebsd-ports/Tools/portbuild/scripts/buildsuccess
2003-10-13 02:59:19 +00:00

29 lines
552 B
Bash
Executable file

#!/bin/sh
#
# buildsuccess <arch> <branch> <pkgname>
# configurable variables
pb=/var/portbuild
arch=$1
shift
. ${pb}/${arch}/portbuild.conf
. ${pb}/scripts/buildenv
branch=$1
pkgname=$2
shift 2
buildenv ${pb} ${arch} ${branch}
# Don't pick up installed packages from the host
export LOCALBASE=/nonexistentlocal
export X11BASE=/nonexistentx
index=${PORTSDIR}/${INDEXFILE}
portloc=$(grep "^$pkgname|" ${index} | cut -f 2 -d \| | sed s,/usr/ports/,,)
cd ${pb}/${arch}/${branch}
grep -v "^${portloc}|" failure > failure.new
mv failure.new failure