#!/bin/bash
#
lwd=`dirname $0`
PBPRJ=$1

if [ _"$PBPRJ" = _"" ]; then
	echo "Defaulting to building for pb itself"
	PBPRJ="pb"
fi

distros=`pb -p $PBPRJ getconf velist`
for pbos in `echo $distros | sed 's/,/ /g'`;
do
	d=`echo $pbos | cut -d'-' -f1`
	v=`echo $pbos | cut -d'-' -f2`
	$lwd/mkctn $PBPRJ $d $v
done
