• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
    • 軟件測試技術
    • 軟件測試博客
    • 軟件測試視頻
    • 開源軟件測試技術
    • 軟件測試論壇
    • 軟件測試沙龍
    • 軟件測試資料下載
    • 軟件測試雜志
    • 軟件測試人才招聘
      暫時沒有公告

    字號: | 推薦給好友 上一篇 | 下一篇

    CVS-RCS(7)

    發布: 2007-6-21 12:06 | 作者:   | 來源:   | 查看: 17次 | 進入軟件測試論壇討論

    領測軟件測試網

       
      4.8 slog

    注意 : Korn shell /bin/ksh 在你從Linux CD-ROM 安裝 pdksh*.rpm 時就會產


    請把他存成一般文字檔并改變存取權限 chmod a+rx
    _________________________________________________________________

    #!/bin/ksh

    # CVS program slog
    # Program to list history of the file in CVS

    cmdname=`basename $0`

    if [ $# -lt 1 ]; then
    print "\nUsage: $cmdname \n"
    exit
    fi

    # Check if file does not exist....
    if [ ! -f $1 ]; then
    print "\nError: $1 is NOT a file. Aborting $cmdname ......"
    exit
    fi

    cvs log $1 | /usr/local/bin/less

    print "\nDone $cmdname. $cmdname successful"
    #print "\nTip (Usage): $cmdname \n"
    _________________________________________________________________

    4.9 sdif

    注意 : Korn shell /bin/ksh 在你從Linux CD-ROM 安裝 pdksh*.rpm 時就會產


    請把他存成一般文字檔并改變存取權限 chmod a+rx
    _________________________________________________________________

    #!/bin/ksh

    # CVS program sdif
    # Program to see difference of the working file with CVS copy

    cmdname=`basename $0`

    Usage()
    {
    print "\nUsage: $cmdname "
    print "$cmdname -r -r \n"
    exit
    }
    FLAG1=""
    FLAG2=""
    OARG1=""
    OARG2=""
    # Command getopt will not supported in next major release.
    # Use getopts instead.
    while getopts r:r: ii
    do
    case $ii in
    r)
    if [ "$FLAG1" = "" ]; then
    FLAG1=$ii;
    OARG1="$OPTARG"
    else
    FLAG2=$ii;
    OARG2="$OPTARG"
    fi
    ;;
    ?) Usage; exit 2;;
    esac
    done
    shift ` expr $OPTIND - 1 `

    if [ "$FLAG2" = "" ]; then
    FLAG2=r
    OARG2=HEAD
    fi

    if [ "$FLAG1" = "" ]; then
    cvs diff -r HEAD $1 | less
    else
    cvs diff -$FLAG1 $OARG1 -$FLAG2 $OARG2 $1 | less
    fi
    _________________________________________________________________

    4.10 sadd

    注意 : Korn shell /bin/ksh 在你從Linux CD-ROM 安裝 pdksh*.rpm 時就會產


    請把他存成一般文字檔并改變存取權限 chmod a+rx
    _________________________________________________________________

    #!/bin/ksh

    # test
    # CVS program sadd
    # Program to add the file to CVS

    cmdname=`basename $0`
    if [ $# -lt 1 ]; then
    print "\nUsage: $cmdname \n"
    exit
    fi

    # Check if file exists ....
    if [ -f $1 ]; then
    cvs add $1
    exit
    fi

    if [ ! -d $1 ]; then
    print "\nArgument $1 is not a file and not a directory!"
    print "Usage: $cmdname \n"
    exit
    fi

    # Argument is a directory name .....
    hme=` echo $HOME | cut -f1 -d' ' `
    if [ "$hme" = "" ]; then
    print "\nError: \$HOME is not set!!\n"
    exit
    fi

    cur_dir=`pwd`
    len=${#hme}
    len=$(($len + 2))
    subdir=` echo $cur_dir | cut -b $len-2000 `

    if [ "$subdir" = "" ]; then
    if [ -d $CVSROOT/$1 ]; then
    print "\nDirectory $1 already exists in CVSROOT"
    exit
    else
    # You are adding at root directory $CVSROOT
    if [ "$2" = "" -o "$3" = "" ]; then
    print "\nUsage: $cmdname
    ase tag>"
    print "For example - "
    print " $cmdname foo_directory V_1_0 R_1_0"
    exit
    else
    (
    cd $1;
    cvs import $1 $2 $3
    )
    fi
    fi
    else
    # If current directory exists in CVS...
    if [ -d $CVSROOT/$subdir ]; then
    if [ -d $CVSROOT/$subdir/$1 ]; then
    print "\nDirectory $1 already in CVS repository!"
    else
    cvs add $1
    fi
    else
    print "\nSub-directory $subdir does not exist in CVS"
    print "You need to first add $subdir to CVS"
    exit
    fi
    fi
    _________________________________________________________________

    4.11 sdelete

    注意 : Korn shell /bin/ksh 在你從Linux CD-ROM 安裝 pdksh*.rpm 時就會產


    請把他存成一般文字檔并改變存取權限 chmod a+rx
    _________________________________________________________________

    #!/bin/ksh

    # CVS program sdelete
    # Program to delete the file from CVS

    cmdname=`basename $0`

    if [ $# -lt 1 ]; then
    print "\nUsage: $cmdname \n"
    exit
    fi

    # Check if file does not exist....
    if [ ! -f $1 ]; then
    # Try to get the file from CVS
    sget $1
    if [ ! -f $1 ]; then
    print "\nError: $1 does NOT exist in CVS repository. Aborting $
    cmdname ......"
    exit
    fi
    fi

    bkextn=cvs_sdelete_safety_backup
    \mv -f $1 $1.$bkextn

    cvs remove $1

    print "\nsdelete command removes the file from CVS repository"
    print "and archives the file in CVS Attic directory. In case"
    print "you need this file in future than contact your CVS administrator"
    print " "

    print "\nDone $cmdname. $cmdname successful"
    #print "\nTip (Usage): $cmdname \n"
    \mv -f $1.$bkextn $1

    文章來源于領測軟件測試網 http://www.kjueaiud.com/


    關于領測軟件測試網 | 領測軟件測試網合作伙伴 | 廣告服務 | 投稿指南 | 聯系我們 | 網站地圖 | 友情鏈接
    版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
    北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備10010545號-5
    技術支持和業務聯系:info@testage.com.cn 電話:010-51297073

    軟件測試 | 領測國際ISTQBISTQB官網TMMiTMMi認證國際軟件測試工程師認證領測軟件測試網

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>