Checks the package version number KAPVERSION
!
) value is supplied, the version
string of the installed package is displayed, but no comparison takes place.
If a non-null value is supplied, the version of the installed package is not
displayed.
The supplied string should be in the
"Vddd.ddd-ddd"
,
where "ddd"
represents a set of digits. The leading "V"
can be omitted, as can any number of
trailing fields (missing trailing fields default to zero). [!]
1
–- The installed package is older than the version number specified by the COMPARE
parameter.
0
–- The version of the installed package is equal to the version specified by the
COMPARE parameter.
-1
–- The installed package is younger than the version number specified by the COMPARE
parameter.
The same value is also written to standard output.
"V0.14-1"
, and sets the RESULT parameter
appropriately. For instance, if the installed package was "V0.13-6"
then RESULT would be
set to 1.
If the installed package was "V0.14-1"
, RESULT would be set to
0. If the installed package was "V0.14-5"
RESULT would be set to
1. The package version number is obtained from the version
file in the directory
containing the package’s installed executable files. This file is created when the
package is installed using the "mk install"
command. An error will be reported if this
file cannot be found.