summaryrefslogtreecommitdiffstats
path: root/dnsjit_version.lua
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-07-18 17:45:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-07-18 17:45:34 +0000
commit77f4d592283d96b76512caabc0baaa0f33097143 (patch)
tree06a628805fdcfd2b3e343e95d7a32c16f0b822e9 /dnsjit_version.lua
parentInitial commit. (diff)
downloaddrool-77f4d592283d96b76512caabc0baaa0f33097143.tar.xz
drool-77f4d592283d96b76512caabc0baaa0f33097143.zip
Adding upstream version 2.0.0.upstream/2.0.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dnsjit_version.lua')
-rw-r--r--dnsjit_version.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/dnsjit_version.lua b/dnsjit_version.lua
new file mode 100644
index 0000000..534c4a2
--- /dev/null
+++ b/dnsjit_version.lua
@@ -0,0 +1,11 @@
+local _, major, minor, patch = unpack(arg)
+major = tonumber(major)
+minor = tonumber(minor)
+patch = tonumber(patch)
+if DNSJIT_MAJOR_VERSION > major then os.exit(0) end
+if DNSJIT_MAJOR_VERSION < major then os.exit(1) end
+if DNSJIT_MINOR_VERSION > minor then os.exit(0) end
+if DNSJIT_MINOR_VERSION < minor then os.exit(1) end
+if DNSJIT_PATCH_VERSION > patch then os.exit(0) end
+if DNSJIT_PATCH_VERSION < patch then os.exit(1) end
+os.exit(0)