File: dnsjit_version.lua

package info (click to toggle)
drool 2.0.0-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 444 kB
  • sloc: sh: 588; makefile: 67
file content (11 lines) | stat: -rw-r--r-- 438 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
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)