shithub: ricket

Download patch

ref: 2c9e7e5c36f1315a2de8d5ff4d8583c100c42821
parent: ba15ef85ab8280a07de5e0913b1773a1d9e0a9a6
author: Skyrbunny <tallesttower1@gmail.com>
date: Tue Sep 12 11:56:32 EDT 2023

made makefile.

--- /dev/null
+++ b/Makefile
@@ -1,0 +1,3 @@
+build:
+	GOOS=plan9 go build
+	@echo "Built plan 9 executable."
binary files a/ricket b/ricket differ
--- a/ricket.go
+++ b/ricket.go
@@ -169,7 +169,7 @@
 func format_rc(full_path string) string {
 	_, path := path.Split(full_path)
 	return fmt.Sprintf(`#!/bin/rc
-ricket run %s $*
+bin/ricket run bin/%s $*
 `, path)
 }
 
@@ -182,7 +182,7 @@
 
 install:V:
 	mkdir -p /$ARCH/$PROJECT/bin
-	for (f in $PROJECT/*) cp $f /$ARCH/$PROJECT/bin
+	for (f in bin/*) cp $f /$ARCH/$PROJECT/bin
 	cp $PROJECT /$ARCH/$PROJECT
 	chmod +x /$ARCH/$PROJECT/$PROJECT
 	echo bind -b /$ARCH/$PROJECT /bin >> /usr/$USER/lib/profile