#!/bin/rc grep -v '^[ ]*#|^[ ]*$' pkglist | while(s=`{read}){ if(test -f $s(1)^/mkfile){ echo $s @{ cd $s(1); mk pkg } >[2] /dev/null > /dev/null } if(test -f $s(1)){ echo $s cp $s(1) misc } }