aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xget-info.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/get-info.lua b/get-info.lua
new file mode 100755
index 0000000..d89946c
--- /dev/null
+++ b/get-info.lua
@@ -0,0 +1,16 @@
+#!/usr/bin/env lua5.1
+local inspect = require "inspect"
+print(arg[1])
+local run_macro = loadfile(arg[1])
+
+run_macro()
+local f = io.open("version", "r")
+version = f:read()
+
+print(script_name)
+print(script_description)
+print(script_author)
+print(script_version)
+print(script_namespace)
+print(version)
+--print(inspect(_G))