File: dnsjit_version.lua

package info (click to toggle)
dnsjit 1.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,928 kB
  • sloc: ansic: 9,670; makefile: 328; sh: 193
file content (11 lines) | stat: -rw-r--r-- 438 bytes parent folder | download | duplicates (5)
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)