aboutsummaryrefslogtreecommitdiffstats
path: root/l0/DependencyControl.lua
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2022-11-18 02:11:04 +0000
committergarret <garret@airmail.cc>2022-11-18 02:33:36 +0000
commit46d620d3cc1b9c97f505a5e0459418672c383de0 (patch)
tree28ee7172e4afa6146aff59fb62e5e80b0e03b342 /l0/DependencyControl.lua
downloaddepctrl-feedmaker-46d620d3cc1b9c97f505a5e0459418672c383de0.tar.gz
depctrl-feedmaker-46d620d3cc1b9c97f505a5e0459418672c383de0.tar.bz2
depctrl-feedmaker-46d620d3cc1b9c97f505a5e0459418672c383de0.zip
initial test of depctrl "hijacking"
Diffstat (limited to 'l0/DependencyControl.lua')
-rw-r--r--l0/DependencyControl.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/l0/DependencyControl.lua b/l0/DependencyControl.lua
new file mode 100644
index 0000000..4d188df
--- /dev/null
+++ b/l0/DependencyControl.lua
@@ -0,0 +1,13 @@
+local inspect = require "inspect"
+
+local noop = function() end
+
+local function get_version_record(i)
+ local f = io.open("version", "w")
+ f:write(inspect(i))
+ f:flush()
+ f:close()
+ return { requireModules = noop, registerMacro = noop, registerMacros = noop }
+end
+
+return get_version_record