Checks the package version number POLVERSION
The supplied string should be in the format
"
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.
"
V2.3"
"
V2.3"
, and sets the RESULT parameter appropriately. For instance, if the
installed package was "
V2.2"
then RESULT would be set to -1. If the installed package was "
V2.3"
,
RESULT would be set to 0. If the installed package was "
V2.4"
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.