shithub: lu9

Download patch

ref: 105936be41440f67cda5d1767991b5c3c5ba6f05
parent: 921e09906b6ac33850ac6a1fa81c0345df9369ce
author: kvik <[email protected]>
date: Mon Feb 8 19:41:18 EST 2021

mkfile: install versioned executable and module path

--- a/mkfile
+++ b/mkfile
@@ -4,6 +4,7 @@
 
 TARG=$O.lua
 BIN=/$objtype/bin
+MOD=/sys/lib/lua
 
 OBJS=lua.$O
 
@@ -25,7 +26,10 @@
 	@{cd shim; git/pull}
 
 install:V: $TARG
+	version=`{echo 'print(_VERSION:sub(-3))' | $TARG}
 	cp $TARG $BIN/lua
+	cp $TARG $BIN/lua$version
+	mkdir -p $MOD/$version
 
 clean:V:
 	@{cd shim; mk clean}