9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] git: install rc scripts into /rc/bin/git/
@ 2022-07-14 20:32 an2qzavok
  2022-07-14 20:52 ` Jacob Moody
  0 siblings, 1 reply; 7+ messages in thread
From: an2qzavok @ 2022-07-14 20:32 UTC (permalink / raw)
  To: 9front

rc script files should probably be installed to rc directory.

Unfortunately, cleaning up files already installed in /$objtype is
left as an exercise for the reader.

diff ce2ad9701d018dcff87ecabf1038bb202ea39a50 uncommitted
--- a/sys/src/cmd/git/mkfile
+++ b/sys/src/cmd/git/mkfile
@@ -1,6 +1,7 @@
 </$objtype/mkfile
 
 BIN=/$objtype/bin/git
+RCBIN=/rc/bin/git
 TARG=\
 	conf\
 	get\
@@ -45,7 +46,7 @@
 
 # Override install target to install rc.
 install:V:
-	mkdir -p $BIN
+	mkdir -p $BIN $RCBIN
 	mkdir -p /sys/lib/git
 	for (i in $TARG)
 		mk $MKFLAGS $i.install
@@ -53,5 +54,5 @@
 		mk $MKFLAGS $i.rcinstall
 
 %.rcinstall:V:
-	cp $stem $BIN/$stem
-	chmod +x $BIN/$stem
+	cp $stem $RCBIN/$stem
+	chmod +x $RCBIN/$stem


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-07-15  1:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-14 20:32 [9front] git: install rc scripts into /rc/bin/git/ an2qzavok
2022-07-14 20:52 ` Jacob Moody
2022-07-14 21:33   ` an2qzavok
2022-07-14 23:02     ` Jacob Moody
2022-07-15  0:03       ` umbraticus
2022-07-15  1:04         ` Stuart Morrow
2022-07-15  1:22           ` ori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).