#!/bin/rc -e _wrap=/etc/slew/lib/wrap.rc _base=/etc/slew/conv if (~ $#* 0) exit 1 . $1 if (! ~ $#self 1 || ~ $self */*) exit 1 mkdir $self cp $1 conv for (_name in \ type contents dependencies notification-fd nosetsid \ timeout-up timeout-down timeout-kill timeout-finish \ producer-for consumer-for pipeline-name \ ) { if (! ~ $#$_name 0) { echo $$_name | tr -s ' ' '\n' > $self/$_name } } for (_name in $extra) { if (~ $_name */*) mkdir -p `{dirname $self/$_name} printf '%s' $$_name > $self/$_name } for (_name in up down run finish) { if (whatis $_name > /dev/null >[2=1]) printf '#!/bin/execlineb -P\n%s %s %s\n' \ $_wrap $_base/$self.rc $_name > $self/$_name }