coreqview

来自「CMVC是IBM和许多跨国公司的缺陷管理工具。这里给出了很多在Linux下用KS」· 代码 · 共 103 行

TXT
103
字号
#!/bin/ksh## SAMPLE NAME: coreqView## FUNCTIONS:   This sample shell script lists the coreqs of the specified      #              defect/feature in the specified release.                        #              The subject defect/feature is shown also                        #              (if any coreqs exist.)                                          #                                                                              # USAGE:       [-r release] defect/feature Name                                ## ENVIRONMENT# VARIABLE(S): CMVC_FAMILY [CMVC_RELEASE] [CMVC_BECOME]## 5765-207 (C) COPYRIGHT International Business Machines Corp. 1993,1994# 5765-202 (C) COPYRIGHT International Business Machines Corp. 1993,1994# 5622-063 (C) COPYRIGHT International Business Machines Corp. 1993,1994# 5765-397 (C) COPYRIGHT International Business Machines Corp. 1994## All Rights Reserved# Licensed Materials - Property of IBM## US Government Users Restricted Rights - Use, duplication or# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.###           NOTICE TO USERS OF THE SOURCE CODE EXAMPLES## INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THE SOURCE CODE# EXAMPLES, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, "AS IS" WITHOUT# WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT# LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A# PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE# OF THE SOURCE CODE EXAMPLES, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS,# IS WITH YOU.  SHOULD ANY PART OF THE SOURCE CODE EXAMPLES PROVE# DEFECTIVE, YOU (AND NOT IBM OR AN AUTHORIZED RISC System/6000* WORKSTATION# DEALER) ASSUME THE ENTIRE COST OF ALL NECESSARY SERVICING, REPAIR OR# CORRECTION.## * RISC System/6000 is a trademark of International Business Machines#   Corporation.## /usr/lpp/cmvc/samples/coreqView# ME=$0                                                                                                                                                           error()                                                                         {                                                                                       if [ $# -ne 0 ]; then                                                               echo "ERROR: $*"                                                            fi                                                                                                                                                              echo "\nusage: $ME [-r releaseName] defect/feature Name\n"                      echo "The sample shell script lists the coreqs of the specifed"                 echo "defect or features name.  List includes subject name if any       found.\n"                                                                               echo "releaseName taken from CMVC_RELEASE if not specified.\n"                  exit 1                                                                  }                                                                                                                                                               if [ $# -eq 0 ]; then                                                                   error "Missing arguments."                                              fi                                                                                                                                                              if [ -z "$CMVC_FAMILY" ]                                                        then                                                                              echo "The CMVC family must be set with the CMVC_FAMILY environment variable."   exit 1                                                                        fi                                                                                                                                                                                                                                              if [ "$1" = "-r" ]                                                              then                                                                                    if [ $# -eq 1 ]; then                                                                error "releaseName missing."                                               fi                                                                              if [ $# -eq 2 ]; then                                                                error "defectName missing."                                                fi                                                                              release=$2                                                                      defect=$3                                                               else                                                                                    release=$CMVC_RELEASE                                                           defect=$1                                                                       if [ -z "$CMVC_RELEASE" ]                                                       then                                                                                 error "releaseName missing"                                                fi                                                                      fi                                                                                                                                                              # Select to find defect ids of the coreqs.  Includes the instigator.                                                                                            idlist="(select defectId from tracks where id in \                                      (select trackid  from coreqs where groupId in \                                 (select groupId  from coreqs where trackId in \                                 (select id from TrackView where \                                                   defectname='$defect' and releasename='$release'))))"                                                                                                Report -vi DefectView -where "id in $idlist  \                                    union select * from FeatureView where id in $idlist"                         # end of file

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?