Shorten name of compile test script.
This commit is contained in:
parent
2b4af1e4ca
commit
935c6cf671
1 changed files with 0 additions and 0 deletions
|
@ -1,34 +0,0 @@
|
|||
// Intended to be run from volume 0 for checking compiled sizes.
|
||||
|
||||
switch to 0.
|
||||
compileHere().
|
||||
|
||||
function compileDir {
|
||||
parameter dir.
|
||||
|
||||
print "Entering '" + dir + "'.".
|
||||
cd(dir).
|
||||
compileHere().
|
||||
cd("..").
|
||||
print "Leaving '" + dir + "'.".
|
||||
}
|
||||
|
||||
function compileHere {
|
||||
local fileList is list().
|
||||
list files in fileList.
|
||||
|
||||
for f in fileList {
|
||||
if f:ISFILE {
|
||||
if f:EXTENSION = "ks" {
|
||||
print "Compiling '" + f:NAME + "'.".
|
||||
compile f.
|
||||
}
|
||||
} else if f:NAME[0] <> "." {
|
||||
compileDir(f).
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: might be neat to actually do a filesize comparison and print a report or something,
|
||||
// specifically iterating files NOT to compile.
|
||||
// TODO: We could hypothetically even integrate this with the bootstrapper.
|
Loading…
Add table
Add a link
Reference in a new issue