Fix compileall script, and the compile errors it discovered.

This commit is contained in:
Anna Rose 2021-08-01 18:01:00 -04:00
parent a4d79c9826
commit c3e78c5356
2 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,7 @@
deletepath("/boot/helicopter").
compile "0:/lib/stabilize_helicopter" to "1:/lib/".
comiple "0:/init/helicopter" to "1:/init".
compile "0:/init/helicopter" to "1:/init".
// Set OS to boot and restart.
set core:bootfilename to "/init".

View File

@ -6,9 +6,11 @@ compileHere().
function compileDir {
parameter dir.
cd("dir").
print "Entering '" + dir + "'.".
cd(dir).
compileHere().
cd("..").
print "Leaving '" + dir + "'.".
}
function compileHere {
@ -16,9 +18,10 @@ function compileHere {
list files in fileList.
for f in fileList {
if f:ISFILE {
if f:ISFILE and f:EXTENSION = "ks" {
print "Compiling '" + f:NAME + "'.".
compile f.
} else {
} else if f:NAME[0] <> "." {
compileDir(f).
}
}