From 6b09187899e86eabc25ed2ff96f4c2e51f130c00 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 12 Jan 2018 16:33:11 -0800 Subject: Switched to use load() with environment table instead of passing in nomsu to everything. This has some nice code cleanliness benefits. --- compile_lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compile_lib.sh') 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" -- cgit v1.2.3