/usr/bin/mkc_check_version is in mk-configure 0.29.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | #!/usr/bin/awk -f
############################################################
# Copyright (c) 2009-2010 by Aleksey Cheusov
#
# See LICENSE file in the distribution.
############################################################
#
# usage: _mkc_check_version <reqd> <version>
# example: _mkc_check_version 0.9.0 0.10.0
#
BEGIN {
reqd = ARGV [1]
ver = ARGV [2]
cnt= split(reqd, arr_reqd, /[.]/)
if (cnt != 3){
print "Invalid MKC_REQD " reqd > "/dev/stderr"
print 0
exit 0
}
cnt= split(ver, arr_ver, /[.]/)
if (cnt != 3){
print "Invalid MKC_VERSION " ver > "/dev/stderr"
print 0
exit 0
}
ver = sprintf("%04d.%04d.%04d",
arr_ver [1]+0, arr_ver [2]+0, arr_ver [3]+0)
reqd = sprintf("%04d.%04d.%04d",
arr_reqd [1]+0, arr_reqd [2]+0, arr_reqd [3]+0)
print (reqd <= ver)
exit 0
}
|