aboutsummaryrefslogtreecommitdiff
path: root/compile_lib.sh
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-01-12 16:33:11 -0800
committerBruce Hill <bitbucket@bruce-hill.com>2018-01-12 16:33:11 -0800
commit6b09187899e86eabc25ed2ff96f4c2e51f130c00 (patch)
tree327179a15dfbc0bf11ad293097252ea4bd241b69 /compile_lib.sh
parente09f05a50cdb699029e8a4d5bafcfaade34157fd (diff)
Switched to use load() with environment table instead of passing in
nomsu to everything. This has some nice code cleanliness benefits.
Diffstat (limited to 'compile_lib.sh')
-rwxr-xr-xcompile_lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile_lib.sh b/compile_lib.sh
index 6e4e78a..5757b6e 100755
--- a/compile_lib.sh
+++ b/compile_lib.sh
@@ -16,7 +16,7 @@ if [ "$FLUSH" = true ] ; then
done
fi
-for file in $(cat lib/core.nom | lua -e "for filename in io.read('*a'):gmatch('require \"([^\"]*)\"') do print(filename) end") ; do
+for file in $(cat lib/core.nom | lua -e "for filename in io.read('*a'):gmatch('use \"([^\"]*)\"') do print(filename) end") ; do
compilefile="${file/\.nom/.lua}"
if [ ! -e "$compilefile" ] || [ "$file" -nt "$compilefile" ] ; then
echo "Compiling $file into $compilefile"