![]() |
![]() |
![]() |
![]() |
The file rz_utils is a collection of Bourne/Korn shell subroutines which greatly simplifies the task of interacting with the Razor database. It virtually eliminates the need for you to directly parse the various directories and info files, providing a wide variety of functions.
To use rz_utils, your Bourne/Korn shell script will need to "dot" in the file. For example...
#!/bin/sh . $RAZOR_HOME/scripts/rz_utils #...continue on from here...
rz_utils does not depend upon any external parameters being set. Once "dotted", you'll be able to take advantage of the functions described below, much as you would a normal UNIX program.
Dump out the contents of a list of issues. The input file which contains the list must have entries of the form:
<issue group>|<issue number>
An optional second parameter may be passed which is the name of a file containing a signature block which should be appended to the output of each issue.
Build a list of files that have been related to this issue. This list will contain the highest version of each file.
Get an attribute value for a given field. If the <delim> is defined, field values will be separated by that delimiter. Otherwise, field values will be space separated.
Get a field without tweaking it like get_field() does. This is useful for getting the value of a TEXT_FIELD.
+ file2 2.5 + file1 1.7 + file1 1.6.1 + file2 2.4
so that for each distinct file name, only one line appears, and the version number is the max of all the version numbers for that file.
![]() |
![]() |
![]() |
![]() |
(Part 2 of 13 for this section) (Generated 09/13/99 at 18:14:47) |
Copyright Tower Concepts http://www.tower.com Voice: 315-363-8000 Fax: 315-363-7488 support@tower.com sales@tower.com |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |