aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2004-07-14 17:06:42 +0800
committerkris <kris@FreeBSD.org>2004-07-14 17:06:42 +0800
commitbf800770fb3a0c5b4f464bee889126da8704d23f (patch)
tree1450b05f43a494baf8618b512f8eb1b74caca650 /Tools
parente540436119734f1aff2660681f5e8759fde95b55 (diff)
downloadfreebsd-ports-gnome-bf800770fb3a0c5b4f464bee889126da8704d23f.tar.gz
freebsd-ports-gnome-bf800770fb3a0c5b4f464bee889126da8704d23f.tar.zst
freebsd-ports-gnome-bf800770fb3a0c5b4f464bee889126da8704d23f.zip
Send me mail when a previously-broken port builds successfully.
XXX Should not be a hard-coded address
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/buildsuccess7
1 files changed, 5 insertions, 2 deletions
diff --git a/Tools/portbuild/scripts/buildsuccess b/Tools/portbuild/scripts/buildsuccess
index 08ba06b9aa22..ab5eba759d4d 100755
--- a/Tools/portbuild/scripts/buildsuccess
+++ b/Tools/portbuild/scripts/buildsuccess
@@ -25,5 +25,8 @@ 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
+if grep -q "^${portloc}|" failure; then
+ echo | mail -s "${pkgname} now builds on ${arch} ${branch}" kris@FreeBSD.org
+ grep -v "^${portloc}|" failure > failure.new
+ mv failure.new failure
+fi