#!/bin/sh
#
# $FreeBSD: ports/Tools/portbuild/scripts/showrunning,v 1.2 2006/07/09 19:02:14 linimon Exp $
#
# show currently running builds in terse format
#
ps axww | \
  grep "/var/portbuild/scripts/pdispatch" | \
  grep -v "grep /var/portbuild/scripts/pdispatch" | \
  sed -e "s@.*pdispatch @@;s@/var/portbuild/scripts/portbuild .*/usr/ports/@@;s@^ @@g;s@ @-@" | \
  sort
