diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-18 17:45:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-18 17:45:34 +0000 |
commit | 77f4d592283d96b76512caabc0baaa0f33097143 (patch) | |
tree | 06a628805fdcfd2b3e343e95d7a32c16f0b822e9 /dnsjit_version.lua | |
parent | Initial commit. (diff) | |
download | drool-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.lua | 11 |
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) |