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").
|
deletepath("/boot/helicopter").
|
||||||
|
|
||||||
compile "0:/lib/stabilize_helicopter" to "1:/lib/".
|
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 OS to boot and restart.
|
||||||
set core:bootfilename to "/init".
|
set core:bootfilename to "/init".
|
||||||
|
|
|
@ -6,9 +6,11 @@ compileHere().
|
||||||
function compileDir {
|
function compileDir {
|
||||||
parameter dir.
|
parameter dir.
|
||||||
|
|
||||||
cd("dir").
|
print "Entering '" + dir + "'.".
|
||||||
|
cd(dir).
|
||||||
compileHere().
|
compileHere().
|
||||||
cd("..").
|
cd("..").
|
||||||
|
print "Leaving '" + dir + "'.".
|
||||||
}
|
}
|
||||||
|
|
||||||
function compileHere {
|
function compileHere {
|
||||||
|
@ -16,9 +18,10 @@ function compileHere {
|
||||||
list files in fileList.
|
list files in fileList.
|
||||||
|
|
||||||
for f in fileList {
|
for f in fileList {
|
||||||
if f:ISFILE {
|
if f:ISFILE and f:EXTENSION = "ks" {
|
||||||
|
print "Compiling '" + f:NAME + "'.".
|
||||||
compile f.
|
compile f.
|
||||||
} else {
|
} else if f:NAME[0] <> "." {
|
||||||
compileDir(f).
|
compileDir(f).
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user