#! /bin/sh

CVSROOT=`pwd`/cvs
export CVSROOT

cvs init

cvs co -d wc .
cd wc

mkdir dir
cvs add dir
cvs commit -m 'Adding dir'

cd dir

echo '1.1' >fileA
echo '1.1' >fileB
echo '1.1' >fileC
echo '1.1' >fileD

cvs add fileA fileB fileC fileD
cvs commit -m 'initial versions'

cvs tag -b A1

echo '1.2' >fileD
cvs commit -m 'revision 1.2 of fileA'

cvs tag -b A2

# Switch to branch "A1":
cvs update -r A1

echo '1.1.2.1' >fileB
cvs commit -m 'revision 1.1.2.1 of fileB'

# Create branch "B" and switch to branch:
cvs tag -b B
cvs update -r B

echo '1.1.2.1.2.1' >fileC
cvs commit -m 'revision 1.1.2.1.2.1 of fileC'

cvs tag X

