ref: 1b09060f468f530af2f4ef75441a40084e912e54
dir: /sys/src/cmd/replica/mkfile/
</$objtype/mkfile SCRIPTS=\ changes\ pull\ push\ scan\ setupdirs\ TARG=\ applychanges\ applylog\ compactdb\ updatedb\ OFILES=\ db.$O\ util.$O\ HFILES=all.h BIN=/$objtype/bin/replica </sys/src/cmd/mkmany $O.applychanges: revproto.$O ${SCRIPTS:%=$BIN/%}: for(i in $target){ echo '#!/bin/rc' echo 'exec /rc/bin/replica/'^`{basename $i}^' $*' } >$i chmod +x $target install:V: ${TARG:%=$BIN/%} ${SCRIPTS:%=$BIN/%}