Lots of changes everywhere.

This commit is contained in:
Anna Rose Wiggins 2021-08-01 01:23:39 -04:00
parent b3a6105cbe
commit 13018f75aa
11 changed files with 186 additions and 25 deletions

View file

@ -1,10 +1,29 @@
// Intended to be run from volume 0 for checking compiled sizes.
for file in FILES {
if file:ISFILE and file:EXTENSION = "ks" {
compile file:NAME.
switch to 0.
compileHere().
function compileDir {
parameter dir.
cd("dir").
compileHere().
cd("..").
}
function compileHere {
local fileList is list().
list files in fileList.
for f in fileList {
if f:ISFILE {
compile f.
} else {
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.
}