git: plan9front

Download patch

ref: 1cf9125d092180931e81da35066bd8876d880d46
parent: ba9a0448fde8f4fd42ef21a6c562f75570418257
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 \
--