⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gettrackfiles.sh

📁 CMVC是IBM和许多跨国公司的缺陷管理工具。这里给出了很多在Linux下用KSH编写的使用CMVC命令的例子。这些例子来自于IBM内部的CMVC培训。
💻 SH
字号:
#!/bin/ksh#   begin_generated_IBM_prolog                                          #                                                                       #   This is an automatically generated prolog - please make careful     #   modifications - update year1 and add program (product) numbers      #   if old copyright information exists in the file.  Do not remove     #   any text.                                                           #   ------------------------------------------------------------------  #   IBM Confidential                                                    #                                                                       #   OCO Source Materials                                                #                                                                       #   Product(s): CMVC951-7                                               #                                                                       #   (C)Copyright IBM Corp. 1999, 2001                                   #                                                                       #   The source code for this program is not published or otherwise      #   divested of its trade secrets, irrespective of what has been        #   deposited with the US Copyright Office.                             #   ------------------------------------------------------------------  #   end_generated_IBM_prolog                                            ## SAMPLE NAME: getTrackFiles## FUNCTIONS:   This sample shell script gets all the files associated with a#              specific track and places them in the path specified by the#              relativePathName parameter.## USAGE:       getTrackFiles releaseName defectNumber relativePathName## ENVIRONMENT# VARIABLE(S): CMVC_FAMILY [CMVC_BECOME]## ORIGINS:     27## 5765-039 (C) COPYRIGHT International Business Machines Corp. 1991,1993# 5765-207 (C) COPYRIGHT International Business Machines Corp. 1993# 5765-202 (C) COPYRIGHT International Business Machines Corp. 1993# 5622-063 (C) COPYRIGHT International Business Machines Corp. 1993# 5765-069 (C) COPYRIGHT International Business Machines Corp. 1991,1993# 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/getTrackFiles#if [ $# -eq 0 ]; then        echo "\nusage: $0 releaseName defectNumber relativePathName\n"        echo "This sample shell script gets all the files associated with a"        echo "specific track and places them in the path specified by the"        echo "relativePathName parameter.\n"    exit 1fiif [ -z "$CMVC_FAMILY" ]then  echo "The CMVC family must be set with the CMVC_FAMILY environment variable."  exit 1fi#if [ $# -ne 3 ]; then        echo "\nProvide a releaseName, a defectNumber and a relativePathName"	echo "as input parameters.\n"	exit 1fireleaseName=$1defectName=$2relative=$3PATHNAME=SAVEPATHNAME=Report -view ChangeView -w "defectName='$defectName' and releaseName='$releaseName' order by adddate desc" -raw >/tmp/cv$$while read linedo   SID=`echo $line | cut -d'|' -f4 `   PATHNAME=`echo $line | cut -d'|' -f5 `   if [[ "$PATHNAME" != "$SAVEPATHNAME" ]]   then        File -extract $PATHNAME -relative $relative -release $releaseName -version $SID	SAVEPATHNAME=$PATHNAME   fidone </tmp/cv$$[ -r /tmp/cv$$ ] && rm -f /tmp/cv$$

⌨️ 快捷键说明

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