summaryrefslogtreecommitdiff
path: root/etc/doall.lua
diff options
context:
space:
mode:
Diffstat (limited to 'etc/doall.lua')
-rw-r--r--etc/doall.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/doall.lua b/etc/doall.lua
new file mode 100644
index 00000000..fb0fad70
--- /dev/null
+++ b/etc/doall.lua
@@ -0,0 +1,6 @@
+-- emulate the command line behaviour of Lua 4.0
+-- usage: lua doall.lua f1.lua f2.lua f3.lua ...
+
+for i=1,table.getn(arg) do
+ dofile(arg[i])
+end