ref: 30a34b501c28bd85b01d8f1452522cfd6ffb4b32
parent: f4e52194f238dd3fc70a2f7b3c7eb73261c39f2a
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jul 4 15:49:57 EDT 2025
9pc64/mkfile: add 'mk install.$part' command it's convenient to have a command that backs up the old kernel and installs a new one; this adds it, and removes the broken EXTRACOPIES argument.
--- a/sys/src/9/pc64/mkfile
+++ b/sys/src/9/pc64/mkfile
@@ -84,9 +84,14 @@
install:V: $p$CONF
cp $p$CONF /$objtype/
- for(i in $EXTRACOPIES)
- import $i / /n/$i && cp $p$CONF $p$CONF.gz /n/$i/$objtype/
+install.%:V: $p$CONF
+ @{
+ rfork n
+ 9fs $stem
+ test -e /n/$stem/$p$CONF && cp /n/$stem/$p$CONF /n/$stem/$p$CONF.o
+ cp $p$CONF /n/$stem/$p$CONF
+ }
# copies generated by the rule below
PCHEADERS=usbehci.h screen.h mp.h io.h ahci.h \
--
⑨