亚洲好骚综合-亚洲黄色录像-亚洲黄色网址-亚洲黄色网址大全-99久久99久久-99久久99久久精品国产

您的位置:軟件測試 > 開源軟件測試 > 開源配置管理工具 > cvs
CVS-RCS
作者:網(wǎng)絡轉載 發(fā)布時間:[ 2013/1/25 16:19:35 ] 推薦標簽:

4.8 slog

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

請把他存成一般文字檔并改變存取權限 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 " Usage: $cmdname "
exit
fi

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

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

print " Done $cmdname. $cmdname successful"
#print " Tip (Usage): $cmdname "
_________________________________________________________________

4.9 sdif

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

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

#!/bin/ksh

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

cmdname=`basename $0`

Usage()
{
print " Usage: $cmdname "
print "$cmdname -r -r "
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 時會產(chǎn)

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

#!/bin/ksh

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

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

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

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

# Argument is a directory name .....
hme=` echo $HOME | cut -f1 -d' ' `
if [ "$hme" = "" ]; then
print " Error: $HOME is not set!! "
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 " Directory $1 already exists in CVSROOT"
exit
else
# You are adding at root directory $CVSROOT
if [ "$2" = "" -o "$3" = "" ]; then
print " Usage: $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 " Directory $1 already in CVS repository!"
else
cvs add $1
fi
else
print " Sub-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 時會產(chǎn)

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

#!/bin/ksh

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

cmdname=`basename $0`

if [ $# -lt 1 ]; then
print " Usage: $cmdname "
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 " Error: $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 " sdelete 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 " Done $cmdname. $cmdname successful"
#print " Tip (Usage): $cmdname "
mv -f $1.$bkextn $1

上一頁12345678910下一頁
軟件測試工具 | 聯(lián)系我們 | 投訴建議 | 誠聘英才 | 申請使用列表 | 網(wǎng)站地圖
滬ICP備07036474 2003-2017 版權所有 上海澤眾軟件科技有限公司 Shanghai ZeZhong Software Co.,Ltd
主站蜘蛛池模板: 男女爱视频免费高清在线观看 | 日韩精品免费一级视频 | 国产精品免费看久久久久 | a4yy欧美一区二区三区 | 美国大黄一片免费看 | 午夜视频在线 | 日韩欧美一区二区三区在线视频 | 欧美 日韩 国产 在线 | 日本不卡在线 | 黄色a级免费 | 色库一区导航 | 亚洲成人黄色网址 | 久在草在线 | 精品日本亚洲一区二区三区 | 国产一二三区在线 | 国产精品激情丝袜美女 | 亚洲丰满熟妇毛片在线播放 | 狠狠色狠狠色综合网 | 日韩欧美中文字幕在线观看 | 日本激情在线看免费观看视频 | 特级黄a三级三级三级 | 综合欧美日韩一区二区三区 | 成人国产精品免费软件 | 老司机午夜视频 | 波多野结衣国产一区 | 日韩一道本 | 最近免费中文字幕mv | 欧美一级视频精品观看 | 在线看你懂 | 大黄网站免费 | 日批网站免费 | 欧美在线看欧美视频免费网站 | 亚洲欧美综合在线观看 | 免费毛片网站在线观看 | 欧美日韩精品 | 亚洲日本va午夜中文字幕 | 动漫精品一级毛片动漫 | 欧美成人一区二区三区在线视频 | 黑人极品videos精品欧美裸 | 在线观看成年视频 | 天天摸日日添狠狠添婷婷 |