
                                 Linux CVS/RCS
                                       
   (ԭʼʽ汾ϵͳ) HOWTO ļ
   
:Al Dev (Alavoor Vasudevan) [1]alavoor@yahoo.com
:Cyril Huang [2]cyril_huang@yahoo.com

   v4.0, 15 November 1999 : 8 Feb 2000
     _________________________________________________________________
   
   ļһ "ʵʲ˵" Աʹܿ趨 CVS/RCS ԭʼ
   ʽϵͳļҲһЩ CVS ϳõĻɿ趨
   shell scripts Щ scripts Ϊ CVS ṩһ򵥵ʹ߽档
   ݲ Linux ϵͳҲ Unix ϵͳ
   Solaris, HPUX, AIX, SCO, Sinix, BSD, SCO ȵȡ
     _________________________________________________________________
   
1. 

2. һְ汾ϵͳʺ? CVS  RCS

3. 趨 CVS 

     * 3.1 CVS רл 
     * 3.2  RCS ת CVS ϵͳ 
       
4. Shell Scripts 

     * 4.1 sget 
     * 4.2 sedit 
     * 4.3 scommit 
     * 4.4 supdate 
     * 4.5 sunlock 
     * 4.6 slist 
     * 4.7 sinfo 
     * 4.8 slog 
     * 4.9 sdif 
     * 4.10 sadd 
     * 4.11 sdelete 
     * 4.12 sfreeze 
     * 4.13 saddtree 
       
5. CVS ļ 

6. Emacs ༭ 

7. ⷴӦϵͳ (Problem Reporting System) 

8. ļʽ
     _________________________________________________________________
   
1. 

   ԭʼϵͳһܹЩƻչʱԭʼĸı䡣
   忪Ҫһԭʼıʷ¼ Աڷʱܹ׷
   ǰȶİ汾 Ȼԭʼʽκεƻ뿪ǻʱ
   ǮؼĲ֣Իʱʹԭʼϵͳ CVS  RCS 
   ȫı(safe-guarding)ԭʼʽǷǳҪġ
   
   CVS (Concurrent Version Control System) һúܶʽͬʱ
   忪ķǳǿ󹤾ߡʹRCS ĵ涨ʽһӦóʽ
   İװ RCS ϲ㡣
   
   (ע: RCS ǽϵİ汾ƣһ RCS Ƶĵӵ
   proj1.c,v CVS һЩ RCS Ĺ涨)
   
   CVS ܹ¼ĵʷ¼( ͨԭʼʽ룬̬ĵ
   һ) CVS ֻ˲ͬ汾еĲ죬ÿ汾е
   ÿ CVS Ҳһʱ˸ĵΪʲĵȵȲͬ
   ʷ¼
   
   CVS ķкͶͬʱĿǰԭʼĹǷǳа 
   ֻҪԵһĿ¼µĵṩ汾ƣ ෴ģCVS ṩ˶֯
   Ŀ¼İ汾ơ Ŀ¼³ԭʼʽ⣬һ
   CVS ĸİĿ¼뵵
   
   ЩĿ¼뵵ᱻϲһγһķС
   
   CVS ܱʹ "C", "C++", Java, Perl, HTML 
   
2. һְ汾ϵͳʺ? CVS  RCS

   CVS ʵǼ RCS ֮ϵģ CVS ֻһѸǿܿһԭʼ
   ʽײĿ¼Ĺߡ ǷǳǿҵƼʹ CVSΪܹеԵ
    perl , korn bash shell  scripts 趨Լ CVS ϵͳ 뿴һ
   Щ korn shell scripts ġ [3]Shell Scripts 
   
   CVS ŵ
     * CVS ǷǼʽĹʹߴӴ (repository) ǳһĿ¼
        ԼĶȶĿ¼
     * CVS ܹڷƻԭʼĿ¼"ӡ" ("STAMP")
     * CVS ܹʹͬʱ޸ĵ
     * CVS ܹ shell scripts  perl 趨ɵסɵһʹûͬʱ޸
       ģʽ
       
   CVS ȱ
     * Ҫ RCS һĹ
     * ǳ츴ӵϵͳǷ "״̬" (State of the Art) ļ
     * зḻѡ˶춳ѧ˵кܶѧϰߡ 
       ʹõ shell scripts ҵ [4]Shell Scripts 
       
   RCS ŵ
     * RCS ǳ趨һЩϵĹ
     * RCS һÿһļ
     * RCS 춼򵥵ϵͳá
     * ǳϽĵһ޸ģʽ - ͬͬʱǲġ
       
   RCS ȱʧ
     * ʹõһĿ¼뵵סɺܶĳʽͬʱĿ
       ΪһĿ¼ºܶ˶Եĸı䣬 make ʹô
     * ܶƻϷ(releases)ӡǡ
       
   ļҲһЩ shell scripts ṩ򵥵ǳ (check-out),
   ¼ (check-in), ͽ(commit) Ķ 뿴һЩ shell scripts ġ
    [5]Shell Scripts 
   
    RCS ԣ뿴 Linux CD-ROM RCS mini-howto
     _________________________________________________________________
   
cd /mnt/cdrom/Redhat/RPMS
ls -l howto-6.0-*.noarch.rpm
rpm -qpl howto-6* | grep -i rcs
     _________________________________________________________________
   
   ߿ [6]http://sunsite.unc.edu/LDP/HOWTO/mini/RCS-HOWTO.html
   
3. 趨 CVS

   ȣҪװ CVS ׼Redhat Linux 
     _________________________________________________________________
   
cd /mnt/cdrom/Redhat/RPMS
rpm -i rcs*.rpm
rpm -i cvs*.rpm
To see the list of files installed do -
rpm -qpl cvs*.rpm | less
     _________________________________________________________________
   
   Ȼ j, k, CTRL+f, CTRL+D, CTRL+B, CTRL+U Ҽ, page up/down
   һ½  'man less' 鿴 less ÷
   
    unix ϣҪ RCS CVS  tar.gz  Ȼ
   README, INSTALL ָʾװ CVS 뵽 [7]http://www.cyclic.com 
   [8]http://www.loria.fr/~molli/cvs-index.html
   
3.1 CVS רл

   еĻҪ /etc/profile 趨/etc/profile Ƕʹ
   Чڶֵ趨 û趨 /etc/profileӦüЩ趨
   Լ趨  /.bash_profile ڡ
     _________________________________________________________________
   
export EDITOR=/bin/vi
export CVSROOT=/home/cvsroot
export CVSREAD=yes
     _________________________________________________________________
   
   һĿ¼ԭʼʽĴع (repository) Ҹ unix group
    user дȨ (ע:Ŀ¼½кܶ㽫ԭʼ롣)
     _________________________________________________________________
   
export CVSROOT=/home/cvsroot
mkdir $CVSROOT
chmod o-rwx $CVSROOT
chmod ug+rwx $CVSROOT
     _________________________________________________________________
   
   Ҫʼ CVS Ҵڿʼԭʼʽ뽻 CVS  -
     _________________________________________________________________
   
cvs init

(עʼĶ춽һعһĿ¼$CVSROOT/CVSROOT
$CVSROOT µĿ¼ÿ module ˼һ module Ծһרƻ
Ҳһƻɺܶ module ͬ module ͬ team ȥչ)

# һҪҪ CVS ƵļƻĿ¼
cd $HOME/my_source_code_dir

# Ŀ¼ import 
cvs import my_source_code_dir V1_0 R1_0

(ע:ʵ cd projectᣬcvs import ģ vendor_tag release_tag
һҪĿ¼ my_source_code_dirvendor_tag, release_tag ֻʶõĶ

ڡ$CVSROOT/¿" ģ "Ŀ¼Ȼ my_source_code_dir 
 CVS ¹
$HOME/my_source_code_dir ûˡimport ĶǰѾдõһ code ڽ
xxxx.cдxxxx.c cvs add xxxx.c)
     _________________________________________________________________
   
3.2  RCS ת CVS ϵͳ

   ҪתѾڵ RCS  CVS ʹ script ȷ
   Linux CD-ROM װ korn shell ׼ pdksh*.rpm  script ᣬѵ
   Ŀ¼Ƶ$CVSROOT/some_project_name
   
   ע : Korn shell /bin/ksh Linux CD-ROM װ pdksh*.rpm ʱͻ
   
     _________________________________________________________________
   
#!/bin/ksh

#############################################################
# Program to Migrate the existing source code in RCS to CVS
#
# Needs the korn shell RPM package  pdksh*.rpm from Linux
# contrib cdrom
#############################################################

# Enter your current RCS file location here.
RCS_DIRECTORY=/usr/home/my_rcs_tree

# Temporary directory to hold the files
TMP_RCS_DIR=$HOME/tmp_rcs_directory

mkdir $TMP_RCS_DIR

# Copy the tree having RCS directory into temporary directory
cd $RCS_DIRECTORY
tar cvf -  ` find . -name RCS -print ` | ( cd $TMP_RCS_DIR; tar -xvf - )

cd $TMP_RCS_DIR

for ii in `find . -type f -print` ;
do
        # $ii will have like /home/foo/RCS/sample.c,v
        echo $ii

        # Get the dir name like /home/foo/RCS from ii
        kk=`dirname $ii`
        # echo $kk

        # Drop off RCS from kk - like /home/foo
        jj=`dirname $kk`
        #       echo $jj

        # Move file from RCS to upper leve like
        # mv /home/foo/RCS/sample.c,v  /home/foo
        mv $ii $jj
done

# Remove the empty directory RCS like -
# rmdir /home/foo/RCS
cd $TMP_RCS_DIR
find  . -type d -name RCS -exec rmdir {} \;

# The resultant directory is $TMP_RCS_DIR (which is $HOME/tmp_rcs_directory)
# Move the directory tmp_rcs_directory to $CVSROOT/some_project_name
# Now the RCS is migrated to CVS as 'some_project_name' .
     _________________________________________________________________
   
   Ľ $TMP_RCS_DIR ( $HOME/tmp_rcs_directory)
   tmp_rcs_directoryĿ¼Ƶ $CVSROOT/some_project_name  RCS
   ѾƵ CVS ϵͳµ 'some_project_name' Կʼ CVS  
   ȡ 'some_project_name' ģ (module) ˡ
   
4. Shell Scripts

    scripts ǻ CVS ļϣ Korn shell  scripts 
   ԰ת perl  bashԼ޸ĳҪӡ Щֻ
   û CVS ЩĻ档磬 sedit  script ṩ
   ˵סĹʹ֪ĳ޸ ȻҲֱ
   ʹ CVS Щ scripts Щ scripts ֻչʾ CVS Ƕ
   еԡ
   
   Щ scripts Ƶ /usr/local/bin £ҴĿ¼Ӧ PATH 
   С
    1. sget [-r revision_number] <file/directory name> Ҫ CVS һΨ
       ΨĿ¼ 밴 [9]sget
    2. sedit [-r revision_number] <filename> Ҫ޸һһʽʱ
       scripts סĶûб˿ԵǳˡȻ
       Ըı script ҪĹ - 粻סֻ־ѶϢ
       ෴ģǳϽ 밴 [10]sedit
    3. scommit [-r revision_number] <filename> Ҫĳ޸ĵĵ
       Ŀ¼ ĸı佻 CVS 밴 [11]scommit
    4. supdate <filename/directory> Ҫɴ CVS õµĵupdate һ
       Ŀ¼ 밴 [12]supdate
    5. sunlock [-r revision_number] <filename> ҪΪ sedit ĵ
       صͷŵ(Release File Lock) 밴 [13]sunlock
    6. slist ҪĿǰ޸ĵĵб  'ls -l | grep | ...' 
       밴 [14]slist
    7. sinfo <filename/directory> ҪõһĸİѶ 밴
       [15]sinfo
    8. slog <filename> Ҫõһ CVS İʷ¼ 밴 [16]slog
    9. sdif <filename>
       sdif -r rev1 -r rev2 <filename> Ҫõĵ CVS ĵ
       ͬĵط 밴 [17]sdif
       ע: sdif ֻһ 'f' ΪѾһ unix  'sdiff'
   10. sadd <filename> Ҫһ CVS  밴 [18]sadd
   11. sdelete <filename> Ҫ CVS һ 밴 [19]sdelete
   12. sfreeze <revision name> <directory name> Ҫԭʼ (freeze
       codes) ǽҪ (release) ԭʼĿ¼ 밴
       [20]sfreeze
   13. saddtree <revision name> <directory name> ҪһĿ¼ CVS 
       밴 [21]saddtree
        :
         _____________________________________________________________
       
        cd $HOME;
        sfreeze REVISION_1_0  srctree
         _____________________________________________________________
       
       ⽫ᶳԭʼ룬һǩ REVISION_1_0 һͿ
       ð汾ֵǳĿ¼
       
                ******************************************************

4.1 sget

   ע : Korn shell /bin/ksh Linux CD-ROM װ pdksh*.rpm ʱͻ
   
   
   һֵıȡȨ chmod a+rx
   
#!/bin/ksh

# CVS program sget
# Program to check out the file from CVS read-only

cmdname=`basename $0`

Usage()
{
        print "\nUsage: $cmdname [-r revision_number/symbolic_tag_name] <file/d
irectory name> "
        print "The options -r are optional "
        print "For example - "
        print " $cmdname -r 1.1 foo.cpp"
        print " $cmdname foo.cpp "
        print " $cmdname some_directory "
        print "Extract by symbolic revision tag like - "
        print " $cmdname -r REVISION_1 some_directory "
        print " "
        exit
}

# Command getopt will not supported in next major release.
# Use getopts instead.
while getopts r: ii
do
        case $ii in
        r) FLAG1=$ii; OARG1="$OPTARG";;
        ?) Usage; exit 2;;
        esac
done
shift ` expr $OPTIND - 1 `

#echo FLAG1 = $FLAG1 , OARG1 = $OARG1

if [ $# -lt 1 ]; then
        Usage
fi

bkextn=sget_bak

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

# Check if file already exists....
if [ -f $1 ]; then
        user_perms=" "
        group_perms=" "
        other_perms=" "
        user_perms=`ls -l $1 | awk '{print $1 }' | cut -b3-3 `
        group_perms=`ls -l $1 | awk '{print $1 }' | cut -b6-6 `
        other_perms=`ls -l $1 | awk '{print $1 }' | cut -b9-9 `
        if [ "$user_perms" = "w" -o "$group_perms" = "w"  \
                -o "$other_perms" = "w" ]; then
                print "\nError: The file is writable. Aborting $cmdname ......"
                print "       You should either backup, scommit or delete the f
ile and"
                print "       try $cmdname again\n"
                exit
        fi
fi

cur_dir=`pwd`
#echo $cur_dir

len=${#hme}
len=$(($len + 2))
#echo $len

subdir=` echo $cur_dir | cut -b $len-2000 `
#echo $subdir

if [ "$subdir" = "" ]; then
        fdname=$1
else
        fdname=$subdir"/"$1
fi

# Move the file
touch $1 2>/dev/null
\mv -f $1 $1.$bkextn

# Create subshell
(
cd $hme
#echo $fdname

# Use -A option to clear all sticky flags
if [ "$FLAG1" = "" ]; then
        cvs -r checkout -A $fdname
else
        cvs -r checkout -A -$FLAG1 $OARG1 $fdname
fi
)
#pwd

if [ -f $1 ]; then
        print "\nREAD-ONLY copy of the file $fdname obtained."
        print "Done $cmdname"
        #print "\nTip (Usage): $cmdname <file/directory name> \n"
fi

4.2 sedit

   ע : Korn shell /bin/ksh Linux CD-ROM װ pdksh*.rpm ʱͻ
   
   
   һֵıȡȨ chmod a+rx
   
#!/bin/ksh
# CVS program sedit
# Program to check out the file from CVS read/write mode with locking

cmdname=`basename $0`

Usage()
{
#       print "\nUsage: $cmdname [-r revision_number] [-F] <filename>"
#       print "The options -r, -F are optional "
#       print "The option -F is FORCE edit even if file is "
#       print "locked by another developer"

        print "\nUsage: $cmdname [-r revision_number] <filename>"
        print "The options -r are optional "

        print "For example - "
        print " $cmdname -r 1.1 foo.cpp"
        print " $cmdname foo.cpp "
#       print " $cmdname -F foo.cpp "
        print " "
}

# Command getopt will not supported in next major release.
# Use getopts instead.
#while getopts r:F ii
while getopts r: ii
do
        case $ii in
        r) FLAG1=$ii; OARG1="$OPTARG";;
#       F) FLAG2=$ii; OARG2="$OPTARG";;
        ?) Usage; exit 2;;
        esac
done
shift ` expr $OPTIND - 1 `

#echo FLAG1 = $FLAG1 , OARG1 = $OARG1

if [ $# -lt 1 ]; then
        Usage
        exit
fi

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

bkextn=sedit_bak

cur_dir=`pwd`
#echo $cur_dir

len=${#hme}
len=$(($len + 2))
#echo $len

subdir=` echo $cur_dir | cut -b $len-2000 `
#echo $subdir

if [ "$subdir" = "" ]; then
        fdname=$1
else
        fdname=$subdir"/"$1
fi

# If file is already checked out by another developer....
cvs_root=` echo $CVSROOT | cut -f1 -d' '  `
if [ "$cvs_root" = "" ]; then
        print "\nError: \$CVSROOT is not set!!\n"
        exit
fi
cldir=$CVSROOT/$subdir/Locks
mkdir $cldir 2>/dev/null
rcsfile=$CVSROOT/$subdir/$1,v
#echo $rcsfile

if [ ! -e $rcsfile ]; then
        print "\nError: File $1 does not exist in CVS repository!!\n"
        exit
fi

# Get the tip revision number of the file....
# Use tmpfile as the arg cannot be set inside the sub-shell
tmpfile=$hme/sedit-lock.tmp
\rm -f $tmpfile 2>/dev/null
if [ "$FLAG1" = "" ]; then
        (
        cd $hme
        cvs log $fdname | head -6 | grep head: | awk '{print $2}' > $tmpfile
        )
        OARG1=`cat $tmpfile`
        \rm -f $tmpfile 2>/dev/null
fi

lockfile=$cldir/$1-$OARG1
#if [ -e $lockfile -a "$FLAG2" = "" ]; then
if [ -e $lockfile ]; then
        print "\nError: File $1 Revision $OARG1 already locked by another devel
oper !!"
        aa=` ls -l $lockfile | awk '{print "Locking developers unix login name
is = " $3}' `
        print $aa
        print "That developer should do scommit OR sunlock to release the lock"
        print " "
#       print "You can also use -F option to force edit the file even if"
#       print "the file is locked by another developer. But you must talk to"
#       print "other developer to work concurrently on this file."
#       print "For example - this option is useful if you work on a seperate"
#       print "C++ function in the file which does not interfere with other"
#       print "developer."
#       print " "
        exit
fi

# Get read-only copy now....
if [ ! -e $1 ]; then
        (
        cd $hme
        cvs -r checkout $fdname 1>/dev/null
        )
fi

# Check if file already exists....
if [ -f $1 ]; then
        user_perms=" "
        group_perms=" "
        other_perms=" "
        user_perms=`ls -l $1 | awk '{print $1 }' | cut -b3-3 `
        group_perms=`ls -l $1 | awk '{print $1 }' | cut -b6-6 `
        other_perms=`ls -l $1 | awk '{print $1 }' | cut -b9-9 `
        if [ "$user_perms" = "w" -o "$group_perms" = "w"  \
                -o "$other_perms" = "w" ]; then
                print "\nError: The file is writable. Aborting $cmdname ......"
                print "       You must backup, scommit or delete file and"
                print "       try $cmdname again\n"
                exit
        fi
        #print "\nNote: The file $1 is read-only."
        #print "Hence I am moving it to $1.$bkextn ....\n"
        \mv -f $1 $1.$bkextn
        chmod 444 $1.$bkextn
elif [ -d $1 ]; then
        print "\nError: $1 is a directory and NOT a file. Aborting $cmdname ...
.\n"
        exit
fi

# Create subshell
print "\nNow getting the file $1 from CVS repository ...\n"
(
cd $hme
#echo $fdname
# Use -A option to clear the sticky tag and to get
# the HEAD revision version
if [ "$FLAG1" = "" ]; then
        cvs -w checkout -A $fdname
else
        cvs -w checkout -A -$FLAG1 $OARG1 $fdname
fi
)

if [ -e $1 ]; then
        touch $lockfile
fi

#pwd

print "\nDone $cmdname"
#print "\nTip (Usage): $cmdname <filename> \n"

4.3 scommit

   ע : Korn shell /bin/ksh Linux CD-ROM װ pdksh*.rpm ʱͻ
   
   
   һֵıȡȨ chmod a+rx
   
#!/bin/ksh
# CVS program scommit
# Program to commit the changes and check in the file into CVS

cmdname=`basename $0`

Usage()
{
        print "\nUsage: $cmdname [-r revision_number] <filename>"
        print "The options -r are optional "
        print "For example - "
        print " $cmdname -r 1.1 foo.cpp"
        print " $cmdname foo.cpp "
        print " "
}

# Command getopt will not supported in next major release.
# Use getopts instead.
while getopts r: ii
do
        case $ii in
        r) FLAG1=$ii; OARG1="$OPTARG";;
        ?) Usage; exit 2;;
        esac
done
shift ` expr $OPTIND - 1 `

#echo FLAG1 = $FLAG1 , OARG1 = $OARG1

if [ $# -lt 1 ]; then
        Usage
        exit 2
fi

if [ -d $1 ]; then
        Usage
        exit 2
fi

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

# Find sub-directory
cur_dir=`pwd`
#echo $cur_dir
len=${#hme}
len=$(($len + 2))
#echo $len
subdir=` echo $cur_dir | cut -b $len-2000 `
#echo $subdir
if [ "$subdir" = "" ]; then
        fdname=$1
else
        fdname=$subdir"/"$1
fi

# If file is already checked out by another user....
cvs_root=` echo $CVSROOT | cut -f1 -d' '  `
if [ "$cvs_root" = "" ]; then
        print "\nError: \$CVSROOT is not set!!\n"
        exit
fi
cldir=$CVSROOT/$subdir/Locks
mkdir $cldir 2>/dev/null

# Get the working revision number of the file....
# Use tmpfile as the arg cannot be set inside the sub-shell
tmpfile=$hme/sedit-lock.tmp
\rm -f $tmpfile 2>/dev/null
if [ "$FLAG1" = "" ]; then
        (
        cd $hme
        cvs status $fdname 2>/dev/null | grep "Working revision:" | awk '{print
 $3}' >$tmpfile
        )
        OARG1=`cat $tmpfile`
        \rm -f $tmpfile 2>/dev/null
fi

if [ "$OARG1" = "" ]; then
        print "The file $fdname is NEW, it is not in the CVS repository"
else
        lockfile=$cldir/$1-$OARG1
        if [ -e $lockfile ]; then
                # Check if this revision is owned by you...
                aa=` ls -l $lockfile | awk '{print $3}' `
                userid=`id | cut -d'(' -f2 | cut -d')' -f1 `
                if [ "$aa" != "$userid" ]; then
                        print " "
                        print "The file $fdname is NOT locked by you!!"
                        print "It is locked by unix user name $aa and your logi
n name is $userid"
#                       print "If you are working concurrently with other devel
oper"
#                       print "and you used -F option with sedit."
                        print "You need to wait untill other developer does sco
mmit"
                        print "or sunlock"
                        print "Aborting the $cmdname ...."
                        print " "
                        exit 2
                fi
        else
                if [ -f $CVSROOT/$subdir/$1,v ]; then
                        print "You did not lock the file $fdname with sedit!!"
                        print "Aborting the $cmdname ...."
                        exit 2
                else
                        print "\nThe file $fdname does not exist in CVS reposit
ory yet!!"
                        print "You should have done sadd on $fdname ...."
                fi
        fi
fi

if [ -d $1 ]; then
        Usage
        exit 2
        # Do not allow directory commits for now ...
        #cvs commit
else
        cvs commit $1
        exit_status=$?
fi

if [ $exit_status -eq 0 ]; then
        print "\nDone $cmdname. $cmdname successful"
        #print "\nTip (Usage): $cmdname <filename/directory name>\n"
fi

4.4 supdate

   ע : Korn shell /bin/ksh Linux CD-ROM װ pdksh*.rpm ʱͻ
   
   
   һֵıȡȨ chmod a+rx
   
#!/bin/ksh

# CVS program supdate
# Program to update the file from CVS read/write mode

cmdname=`basename $0`

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

# Check if file already exists....
if [ $# -gt 0 -a  -f $1 ]; then
        user_perms=" "
        group_perms=" "
        other_perms=" "
        user_perms=`ls -l $1 | awk '{print $1 }' | cut -b3-3 `
        group_perms=`ls -l $1 | awk '{print $1 }' | cut -b6-6 `
        other_perms=`ls -l $1 | awk '{print $1 }' | cut -b9-9 `
        if [ "$user_perms" = "w" -o "$group_perms" = "w"  \
                -o "$other_perms" = "w" ]; then
                while :
                do
                        print "\n$cmdname will backup your working file "
                        print "$1 to $1.supdate_bak before doing any merges."
                        print "Are you sure you want the merge the changes from
"
                        print -n "CVS repository to your working file ? <y/n> [
n]: "
                        read ans
                        if [ "$ans" = "y" -o "$ans" = "Y" ]; then
                                if [ -f $1.supdate_bak ]; then
                                        print "\nWarning : File $1.supdate_bak
already exists!!"
                                        print "Please examine the file $1.supda
te_bak and delete it"
                                        print "and than re-try this $cmdname "
                                        print "Aborting $cmdname ...."
                                        exit
                                else
                                        cp $1 $1.supdate_bak
                                        break
                                fi
                        elif [ "$ans" = "n" -o "$ans" = "N" -o "$ans" = "" -o "
$ans" = " " ]; then
                                exit
                        fi
                done
        fi
fi

if [ -d $1 ]; then
        print "\nDirectory update is disabled as cvs update"
        print "merges the changes from repository to your working directory"
        print "So give the filename to update - as shown below: "
        print " Usage: $cmdname <filename>"
        exit
#       cvs update
else
        cvs update $1
fi

print "\nDone $cmdname. $cmdname successful"
#print "\nTip (Usage): $cmdname <filename/directory name>\n"

4.5 sunlock

   ע : Korn shell /bin/ksh Linux CD-ROM װ pdksh*.rpm ʱͻ
   
   
   һֵıȡȨ chmod a+rx.
   
#!/bin/ksh
# CVS program sunlock
# Program to unlock the file to release the lock done by sedit

cmdname=`basename $0`

Usage()
{
        print "\nUsage: $cmdname [-r revision_number] <filename>"
        print " The options -r is optional "
        print "For example - "
        print " $cmdname -r 1.1 foo.cpp"
        print " $cmdname foo.cpp "
        print " "
}

# Command getopt will not supported in next major release.
# Use getopts instead.
while getopts r: ii
do
        case $ii in
        r) FLAG1=$ii; OARG1="$OPTARG";;
        ?) Usage; exit 2;;
        esac
done
shift ` expr $OPTIND - 1 `

if [ $# -lt 1 ]; then
        Usage
        exit
fi

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

cur_dir=`pwd`
#echo $cur_dir

len=${#hme}
len=$(($len + 2))
#echo $len

subdir=` echo $cur_dir | cut -b $len-2000 `
#echo $subdir

if [ "$subdir" = "" ]; then
        fdname=$1
else
        fdname=$subdir"/"$1
fi

# If file is already checked out by another user....
cvs_root=` echo $CVSROOT | cut -f1 -d' '  `
if [ "$cvs_root" = "" ]; then
        print "\nError: \$CVSROOT is not set!!\n"
        exit
fi
cldir=$CVSROOT/$subdir/Locks
rcsfile=$CVSROOT/$subdir/$1,v
#echo $rcsfile

if [ ! -e $rcsfile ]; then
        print "\nError: File $1 does not exist in CVS repository!!\n"
        exit
fi

# Get the tip revision number of the file....
# Use tmpfile as the arg cannot be set inside the sub-shell
tmpfile=$hme/sedit-lock.tmp
\rm -f $tmpfile 2>/dev/null
if [ "$FLAG1" = "" ]; then
        (
        cd $hme
        cvs log $fdname | head -6 | grep head: | awk '{print $2}' > $tmpfile
        )
        OARG1=`cat $tmpfile`
        \rm -f $tmpfile 2>/dev/null
fi

lockfile=$cldir/$1-$OARG1
#echo lockfile is : $lockfile
if [ ! -e $lockfile ]; then
        print "\nFile $1 revision $OARG1 is NOT locked by anyone"
        print " "
        exit
fi

ans=""
while :
do
        print "\n\n***************************************************"
        print "WARNING: $cmdname will release lock and enable other"
        print "         developers to edit the file. It is advisable"
        print "         to save your changes with scommit command"
        print "***************************************************"
        print -n "\nAre you sure you want to unlock the file <y/n>? [n]: "
        read ans
        if [ "$ans" = "" -o "$ans" = " " -o "$ans" = "n" -o "$ans" = "N" ]; the
n
                print "\nAborting $cmdname ...."
                exit
        fi
        if [ "$ans" = "y" -o "$ans" = "Y" ]; then
                print "\n\n\n\n\n "
                print "CAUTION: You may lose all the changes made to file!!"
                print -n "Do you really want to unlock the file <y/n>? [n]: "
                read ans
                if [ "$ans" = "y" -o "$ans" = "Y" ]; then
                        break
                else
                        exit
                fi
        else
                print "\n\nWrong entry. Try again..."
                sleep 1
        fi
done

if [ -e $lockfile ]; then
        \rm -f $lockfile
        print "\nDone $cmdname"
else
        print "\nFile $1 is NOT locked by anyone"
        print " "
fi

4.6 slist

   ע : Korn shell /bin/ksh Linux CD-ROM װ pdksh*.rpm ʱͻ
   
   
   һֵıȡȨ chmod a+rx
   
#!/bin/ksh

# CVS program slist
# Program to list all edited source files from CVS

#cmdname=`basename $0`

if [ "$1" = "" ]; then
        dir=.
else
        dir=$1
fi

FOUT=slist_temporary_file.out

\rm -f $FOUT

find $dir  -type f -exec ls -ltr {} \; \
| grep -v "/CVS/" \
| grep ^\-rw \
| grep -v \\.o \
| grep -v \\.log \
| grep -v \\.out \
| grep -v \\.pid \
| awk '{ if ($NF != "tags") print $0 }' \
| awk '{ if ($NF != "a.out") print $0 }' \
| awk '{ if ($NF != "core") print $0 }' \
| awk '{ print $NF }' > $FOUT

aa=`cat $FOUT`
\rm -f $FOUT

for ii in $aa ; do
        ftype=" "
        ftype=`file $ii | awk '{print $2 }' `

        # find . -type f -exec file {} \;
        # 1)ELF 2)commands 3)[nt]roff, 4)c 5)English  6)executable
        # 7)ascii 8)current 9)empty
        # Binaries are ELF, lib.a are current
        #
        if [ "$ftype" = "ascii" -o "$ftype" = "commands" \
                -o "$ftype" = "[nt]roff," -o "$ftype" = "c" \
                -o "$ftype" = "English" -o "$ftype" = "executable" ]; then
                pcfile=` echo $ii | cut -d'.' -f1`
                pcfile=${pcfile}".pc"
                if [ ! -f $pcfile ]; then
                        ls -l $ii
                else
                        if [ "$ii" = "$pcfile" ]; then
                                ls -l $ii
                        fi
                fi
        fi
done;

#| grep -v ^\-rwx \

#ls -l | grep ^\-rw | grep -v \\.o
#ls -l | grep ^\-rw | grep -v \\.o | awk '{ if ($NF != "tags") print $0 }'
#ls -l | grep ^\-rw | grep -v ^\-rwx | grep -v \\.o |  awk '{ if ($NF != "tags"
) print $0 }' | awk '{ if ($NF != "core") print $0 }'

#print "\nDone $cmdname. $cmdname successful"
#print "\nTip (Usage): $cmdname <filename>\n"

4.7 sinfo

   ע : Korn shell /bin/ksh Linux CD-ROM װ pdksh*.rpm ʱͻ
   
   
   һֵıȡȨ chmod a+rx
   
#!/bin/ksh

# CVS program sinfo
# Program to get the status of files in working directory

cmdname=`basename $0`

if [ $# -lt 1 ]; then
        print "\nUsage: $cmdname [file/directory name] "
        print "For example - "
        print " $cmdname foo.cpp"
        print " $cmdname some_directory "
        print " "
        exit
fi

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

tmpfile=$hme/cvs_sinfo.tmp
rm -f $tmpfile

cur_dir=`pwd`
#echo $cur_dir

len=${#hme}
len=$(($len + 2))
#echo $len

subdir=` echo $cur_dir | cut -b $len-2000 `
#echo $subdir

if [ "$subdir" = "" ]; then
        fdname=$1
else
        fdname=$subdir"/"$1
fi

# Create subshell
if [ -f $1 ]; then
        (
        cd $hme
        clear
        cvs status $fdname
        )
elif [ -d $1 ]; then
        (
        cd $hme
        clear
        echo "  " >> $tmpfile
        echo "  ****************************************" >> $tmpfile
        echo "        Overall Status of Directory" >> $tmpfile
        echo "  ****************************************" >> $tmpfile
        cvs release $fdname 1>>$tmpfile 2>>$tmpfile << EOF
Y
EOF
        echo "\n   -------------------------------\n" >> $tmpfile

        aa=`cat $tmpfile | grep ^"M " | awk '{print $2}' `
        for ii in $aa
        do
                jj="(cd $hme; cvs status $subdir/$ii );"
                echo $jj | /bin/sh  \
                        | grep -v Sticky | awk '{if (NF != 0) print $0}' \
                        1>>$tmpfile 2>>$tmpfile
        done

        cat $tmpfile | grep -v ^? | grep -v "Are you sure you want to release"
\
        | less
        rm -f $tmpfile
        )
else
        print "\nArgument $1 if not a file or directory"
        exit
fi

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 <filename> \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 <filename>\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 <filename> "
        print "$cmdname -r<rev1> -r<rev2> <filename> \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 <filename/directory> \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 <filename/directory> \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 <directory> <vendor tag> <rele
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 <filename> \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 <filename>\n"
\mv -f $1.$bkextn $1

4.12 sfreeze

   ע : Korn shell /bin/ksh Linux CD-ROM װ pdksh*.rpm ʱͻ
   
   
   һֵıȡȨ chmod a+rx
   
#!/bin/ksh

# CVS program sfreeze
# Program to freeze and cut out the release of source tree from CVS

cmdname=`basename $0`

Usage()
{
        print "\nUsage: $cmdname symbolic_tag <directory name> "

        print "\nFor example :- "
        print "   cd \$HOME"
        print "   $cmdname  REVISION_1   mesa"
        print "To see the list of revisons do -"
        print "slog <filename> and see the symbolic name and do -"
        print "cvs history -T"

        print "\nTo create a branch off-shoot from main trunk, use"
        print "the -b and -r options which makes the tag a branch tag. This is"
        print "useful for creating a patch to previously released software"
        print "For example :- "
        print "   cd \$HOME"
        print "   cvs rtag -b -r REVISION_1   REVISION_1_1   mesa"
        print " "

#       print "\nTag info is located at \$CVSROOT/CVSROOT/taginfo,v"
#       print "You can do - cd $HOME; sget CVSROOT"
#       print "to see this file"
        exit
}

# Command getopt will not supported in next major release.
# Use getopts instead.
#while getopts r: ii
#do
#       case $ii in
#       r) FLAG1=$ii; OARG1="$OPTARG";;
#       ?) Usage; exit 2;;
#       esac
#done
#shift ` expr $OPTIND - 1 `

#echo FLAG1 = $FLAG1 , OARG1 = $OARG1

if [ $# -lt 2 ]; then
        Usage
fi

if [ ! -d $2 ]; then
        print "\nError: Second argument $2 is not a directory!"
        print "       Aborting $cmdname...."
        print " "
        exit
fi

# cvs rtag symbolic_tag <directory name>
cvs rtag $1 $2

print "\nDone $cmdname. $cmdname successful"

4.13 saddtree

   ע : Korn shell /bin/ksh Linux CD-ROM װ pdksh*.rpm ʱͻ
   
   
   һֵıȡȨ chmod a+rx
   
#!/bin/ksh

################################################################
# Sample Program to checkin a directory tree (let's say SAMP) into CVS
# Note that if SAMP directory is not in CVS than you would use sadd
# command and -
#       cd SAMP; cvs import SAMP V_1_0 R_1_0
# After running this program do -
#       cd $HOME/foo/SAMP
#       cvs import foo/SAMP V1_0 Rev_1_0
################################################################

hme=` echo $HOME | cut -f1 -d' '  `
if [ "$hme" = "" ]; then
        print "\nError: \$HOME is not set!!\n"
        exit
fi
sampdir=$hme/foo/SAMP

check_out_files()
{
        # Now check out the files
        tmp2f=$hme/tmp2.baksamp.sh

        cd $hme
        \rm -rf foo/SAMP
        cvs -w checkout foo/SAMP
        cd $hme/foo
        find SAMP -type f -print > $tmp2f

        cd $hme
        for ii in `cat $tmp2f`
        do
                iidir=`dirname $ii`
                iifile=`basename $ii`
                if [ "$iifile" = "Root" -o "$iifile" = "Repository" -o "$iifile
" = "Entries" ]; then
                        continue
                fi
                jjdir=` echo $iidir | cut  -d'/' -f2-1000 `

                cp $hme/foo/SAMP.tobe/$jjdir/$iifile  $hme/foo/$iidir/$iifile
                echo "cp $hme/foo/SAMP.tobe/$jjdir/$iifile  $hme/foo/$iidir/$ii
file "

                cvs add  foo/$iidir/$iifile
        done

        print
        print "================================================"
        print " Now run cvs commit foo/SAMP"
        print " After commit. Do - "
        print "         cd foo; rm -rf SAMP and "
        print " get fresh copy, sget SAMP"
        print " Verify with slog filename.samp to see new revision"
        print "================================================"
        print
}

check_out_files

5. CVS ļ

    unix ʾ£ -
    1. cvs --help
    2. cvs --help-options
    3. cvs --help-commands
    4. cvs -H checkout
    5. cvs -H commit
    6. man cvs
    7. man tkcvs
    8. վ [22]http://www.cyclic.com
    9. վ [23]http://www.loria.fr/~molli/cvs-index.html
   10. (ע:GNU online manuals)
       [24]http://www.gnu.org/manual/manual.html
   11. (ע: unix ʾ´ info cvs ҲɵõѶϢ)
       
   tkcvs [25]http://www.tkcvs.org  CVS  Tcl/Tk GUI 档Ҳ
   
     * cd $HOME/src/foo.cpp
     * tkcvs
     *  foo.cpp ϵһ
     *  'spectacle Icon' Աߵ 'Revision Log Icon' һ¡
     * ⽫ʾһ Tree ֯ͼӴȻ '1.3' û
       һ» '1.1' һ£Ȼٵһ "Diff" 
       ʾӴ!!
     *  "Next" ϵһ½ʾ汾'1.3'  '1.1'  diffs 밴
       "Center" ֶС (ע:ԭĺ)
       
   Ҳ Windows 95 õ CVS ร WinCVS [26]http://www.wincvs.org
   WinCVS  Samba ϵͳ - [27]http://www.samba.org
   
   Ҫ -
     * cvs checkout <filename >
     * cvs update <filename>
     * cvs add <file, ..>
     * cvs remove <file, ..>
     * cvs commit <file>
     * cvs status <filename>
     * cvs log <filename>
     * cvs diff -r1.4 -r1.5 <filename> ָ filename 1.4
        1.5 Ĳ
       
6. Emacs ༭

   Emacs Ƿǳǿı༭һ֧Ԯ CVS/RCS - Ƕ춸İĺϲ
   Ƚϡ EmacsҪվ [28]http://www.emacs.org.
   
7. ⷴӦϵͳ (Problem Reporting System)

    CVS ʹãܻҪüƻ׷ϵͳ(Project Tracking system)
   ⷴӦϵͳ(Problem Reporting System)ÿһƻҪⷴӦϵ
   ͳ bugs Ļر׷٣Ұظ𲿷֣ͬĳʽʦ
   
   ֪ƻ׷ϵͳ(Project Tracking system)뿴վ
   [29]http://www.stonekeep.com
   
8. ļʽ

   ļ˽ 10 ͬĵʽ - DVI, Postscript, Latex,
   LyX, GNU-info, HTML, RTF(Rich Text Format), Plain-text, Unix man pages
   and SGML
     *  Web õһ HTML, DVI, Postscript or SGML ʽ
       tar.gz 
       [30]ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/other-formats/ 
       [31]ftp://metalab.unc.edu/pub/Linux/docs/HOWTO/other-formats/
     * Plain text ʽ:
       [32]ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO 
       [33]ftp://metalab.unc.edu/pub/Linux/docs/HOWTO
     * Ƿģģģģĵȵȿ
       ַҵõ [34]ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO 
       [35]ftp://metalab.unc.edu/pub/Linux/docs/HOWTO κ뷭
       Ƕӭġ
       
   ļһֽ "SGML" ĹдɵġԴַõ -
   [36]http://www.xs4all.nl/~cg/sgmltools/ ԭʼᣬͻõ
   
     * sgml2html cvs-rcs-howto.sgml ( html )
     * sgml2rtf cvs-rcs-howto.sgml ( RTF )
     * sgml2latex cvs-rcs-howto.sgml ( latex )
       
   ļλ -
     * [37]http://sunsite.unc.edu/LDP/HOWTO/CVS-RCS-HOWTO.html
       
   Ҳӳվҵļ -
     * [38]http://www.caldera.com/LDP/HOWTO/CVS-RCS-HOWTO.html
     * [39]http://www.WGS.com/LDP/HOWTO/CVS-RCS-HOWTO.html
     * [40]http://www.cc.gatech.edu/linux/LDP/HOWTO/CVS-RCS-HOWTO.html
     * [41]http://www.redhat.com/linux-info/ldp/HOWTO/CVS-RCS-HOWTO.html
     * ȽϿӳվ
       [42]http://sunsite.unc.edu/LDP/hmirrors.html ѡһվ
       Ŀ¼ /LDP/HOWTO/CVS-RCS-HOWTO.html
       
   뿴 dvi ʽļ xdvi ԭûװ Redhat Linux µ
   tetex-xdvi*.rpm ׼ҵõҪȻԾϵControlPanel |
   Applications | Publishing | TeX menu buttonsҵ
   
        뿴 dvi ʽļ -
                xdvi -geometry 80x90 howto.dvi
        ûӴС뿴 xdvi  man xdvi
        ʹ÷ Page Up, Page Down ļҲ 'f', 'd', 'u', '
c', 'l', 'r', 'p', 'n'ƶ
        Ҫصרģʽ menu 밴 x 

    'gv' (ghostview)  'ghostscript'  postscript 
   
    Redhat Linux £ghostscript  ghostscript*.rpm ׼ gv 
   gv*.rpm ׼ ѾװӦóʽ͸ ControlPanel |
   Applications | Graphics menu ҵ gv Ǳ ghostscript ʹ
   Ghostscript  gv Ҳҵƽ̨ OS/2, windows 95  NT ʹ
   á
   
        Ҫ postscript ļ -
                gv howto.ps

         ghostscript  -
                ghostscript howto.ps

    Netscape Navigator, Microsoft Internet explorer, Redhat Baron
   Web browser  HTML ʽļ
   
   һ latex  "X-Windows"  LyX ģ latex 
   LyX 

References

   1. mailto:alavoor@yahoo.com
   2. mailto:cyril_huang@yahoo.com
   3. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#Shell Scripts
   4. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#Shell Scripts
   5. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#Shell Scripts
   6. http://sunsite.unc.edu/LDP/HOWTO/mini/RCS-HOWTO.html
   7. http://www.cyclic.com/
   8. http://www.loria.fr/~molli/cvs-index.html
   9. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#sget
  10. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#sedit
  11. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#scommit
  12. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#supdate
  13. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#sunlock
  14. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#slist
  15. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#sinfo
  16. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#slog
  17. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#sdif
  18. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#sadd
  19. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#sdelete
  20. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#sfreeze
  21. file://localhost/tmp/zh-sgmltools.1402/CVS-RCS-HOWTO.txt.html#saddtree
  22. http://www.cyclic.com/
  23. http://www.loria.fr/~molli/cvs-index.html
  24. http://www.gnu.org/manual/manual.html
  25. http://www.tkcvs.org/
  26. http://www.wincvs.org/
  27. http://www.samba.org/
  28. http://www.emacs.org/
  29. http://www.stonekeep.com/
  30. ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/other-formats/
  31. ftp://metalab.unc.edu/pub/Linux/docs/HOWTO/other-formats/
  32. ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO
  33. ftp://metalab.unc.edu/pub/Linux/docs/HOWTO
  34. ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO
  35. ftp://metalab.unc.edu/pub/Linux/docs/HOWTO
  36. http://www.xs4all.nl/~cg/sgmltools/
  37. http://sunsite.unc.edu/LDP/HOWTO/CVS-RCS-HOWTO.html
  38. http://www.caldera.com/LDP/HOWTO/CVS-RCS-HOWTO.html
  39. http://www.WGS.com/LDP/HOWTO/CVS-RCS-HOWTO.html
  40. http://www.cc.gatech.edu/linux/LDP/HOWTO/CVS-RCS-HOWTO.html
  41. http://www.redhat.com/linux-info/ldp/HOWTO/CVS-RCS-HOWTO.html
  42. http://sunsite.unc.edu/LDP/hmirrors.html
