mkfile (495B)
1 ROOT='' 2 SRC9=$ROOT/sys/src/9 3 CWD=`{pwd} 4 5 EDFILES=`{ls *.ed} 6 SRCFILES=${EDFILES:%.ed=%} 7 8 boot.9: files 9 bind -bc $CWD $SRC9/boot 10 cd $SRC9/pc 11 mk bootpcf.out 'CONF=pcf' && 12 mv bootpcf.out $CWD/boot.9 13 unmount $CWD $SRC9/boot 14 unmount $SRC9/boot $SRC9/boot 15 16 files:V: $SRCFILES 17 18 ([^/]+)\.([ch]):R: \1.\2.ed \1.\2.orig 19 { cat $stem1.$stem2.ed 20 echo w $stem1.$stem2 21 } | ed - $stem1.$stem2.orig 22 23 %.orig: $SRC9/boot/% 24 cp $SRC9/boot/$stem $stem.orig 25 26 clean:V: 27 rm -f boot.9 libboot.a8 *.[ch] *.orig