shithub: minivmac

Download patch

ref: 649e0914486b43f31c89f8d17efc16d9df120198
parent: ea61a2a8e8601d5b732d2c13257413ad4f864b85
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Jun 5 13:37:15 EDT 2020

make install.rc work not just on amd64

--- /dev/null
+++ b/.gitignore
@@ -1,0 +1,5 @@
+*.out
+*.[5678]
+cfg
+bld
+/mkfile
--- a/install.rc
+++ b/install.rc
@@ -1,13 +1,29 @@
 #!/bin/rc
 rfork ne
 
+if(~ $objtype amd64){
+	O=6
+	T=9x64
+}
+if(~ $objtype 386){
+	O=8
+	T=9x86
+}
+if(~ $objtype arm){
+	O=5
+	T=9arm
+}
+if(~ $objtype arm64){
+	O=7
+	T=9a64
+}
 cd setup
 mk clean
 mk all
 cd ..
 rm -rf bld cfg
-./setup/6.out -t 9x64 -an vmac | my_project_d='' my_obj_d='' rc
+./setup/$O.out -t $T -an vmac | my_project_d='' my_obj_d='' rc
 mk install
 rm -rf bld cfg
-./setup/6.out -t 9x64 -an vmac2 -m II | my_project_d='' my_obj_d='' rc
+./setup/$O.out -t $T -an vmac2 -m II | my_project_d='' my_obj_d='' rc
 mk install