setver(1) CLIX setver(1)
NAME
setver - Replaces version string
SYNOPSIS
setver [-V] prod_name new_ver_string file [file...]
FLAGS
-V Prints version information for the setver command.
DESCRIPTION
The setver command replaces the current version string in the symbol
tables with the specified new version string. The command searches the
symbol tables of the specified files (which must be executable files or
shared libraries) for all symbols named prod_name_appl_version_id (where
prod_name is the name string specified on the command line). The initial
underbar in the symbol table entry is ignored in performing the name
comparison. The comparison is case sensitive.
These symbols are assumed to point to an INGR_S_PRODUCT_DEF structure as
defined in <version.h>. When a matching symbol is found, the curr_version
string in the structure pointed to by the symbol table entry is replaced
by the new_ver_string specified on the command line.
If the new_ver_string is longer than the current curr_version string, it
is truncated. If the new_ver_string is shorter than the curr_version
string, it is padded with blanks to the length of the curr_version string.
EXAMPLES
The following example replaces the curr_version string for the IPLOT
product with the new_ver_string of ``IPLOT 06.03.02 16:00 15-NOV-1991'' in
the /usr/ip32/ip/iplot/iplot file.
setver IPLOT "IPLOT 06.03.02 16:00 15-NOV-1991" /usr/ip32/ip/iplot/iplot
The following output appears:
/usr/ip32/ip/iplot:
Old: _IPLOT_appl_version_id = "IPLOT 06.03.01 16:34 14-Nov-1991"
New: _IPLOT_appl_version_id = "IPLOT 06.03.02 16:00 15-NOV-1991"
EXIT VALUES
The command exits with a value of 0 if successful. Otherwise, it exits
with a value of 1.
2/94 - Intergraph Corporation 1
setver(1) CLIX setver(1)
RELATED INFORMATION
Commands: rtv(1)
2 Intergraph Corporation - 2/94