#!/bin/rc -e
rfork ne
path=/bin
␊='
'
fn usage {
echo 'usage: contrib/listall' >[1=2]
exit usage
}
fn fatal {
echo $*
exit $"*
}
9fs sources || fatal mount server failed
cd /n/sources/contrib || exit
{
for(d in *){
echo $d/replica/* &
}
} |
tr ' ' $␊ |
sed '/\*$/d; s!/.*/!/!'
|