Fix compileall script, and the compile errors it discovered.
This commit is contained in:
parent
a4d79c9826
commit
c3e78c5356
|
@ -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".
|
||||
|
|
|
@ -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).
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user