shithub: riscv

ref: e51c4bc6e493a9cd0d9e9d7f1d24c57ae77bab65
dir: /sys/src/cmd/replica/mkfile/

View raw version
</$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/%}