Add a test of non-ascii contents in a .cvsignore file.
[cvs2svn.git] / test-data / branch-from-deleted-1-1-cvsrepos / makerepo.sh
blob37f3603b65b10a039db405263ccdfadf5e05e1db
1 #! /bin/sh
3 # This is the script used to create the branch-from-deleted-1-1 CVS
4 # repository. (The repository is checked into svn; this script is
5 # only here for its documentation value.)
7 # The script should be started from the main cvs2svn directory.
9 name=branch-from-deleted-1-1
10 repo=`pwd`/test-data/$name-cvsrepos
11 wc=`pwd`/cvs2svn-tmp/$name-wc
12 [ -e $repo/CVSROOT ] && rm -rf $repo/CVSROOT
13 [ -e $repo/proj ] && rm -rf $repo/proj
14 [ -e $wc ] && rm -rf $wc
16 cvs -d $repo init
17 cvs -d $repo co -d $wc .
18 cd $wc
19 mkdir proj
20 cvs add proj
21 cd proj
23 echo "Create a file a.txt on trunk:"
24 echo '1.1' >a.txt
25 cvs add a.txt
26 cvs commit -m 'Adding a.txt:1.1' .
28 echo "Create two branches on file a.txt:"
29 cvs tag -b BRANCH1
30 cvs tag -b BRANCH2
33 echo "Add file b.txt on BRANCH1:"
34 cvs up -r BRANCH1
36 echo '1.1.2.1' >b.txt
37 cvs add b.txt
38 cvs commit -m 'Adding b.txt:1.1.2.1'
41 echo "Add file b.txt on BRANCH2:"
42 cvs up -r BRANCH2
44 echo '1.1.4.1' >b.txt
45 cvs add b.txt
46 cvs commit -m 'Adding b.txt:1.1.4.1'
49 echo "Add file b.txt on trunk:"
50 cvs up -A
51 echo '1.2' >b.txt
52 cvs add b.txt
53 cvs commit -m 'Adding b.txt:1.2'
57 echo "Add file c.txt on BRANCH1:"
58 cvs up -r BRANCH1
60 echo '1.1.2.1' >c.txt
61 cvs add c.txt
62 cvs commit -m 'Adding c.txt:1.1.2.1'
65 echo "Add file c.txt on BRANCH2:"
66 cvs up -r BRANCH2
68 echo '1.1.4.1' >c.txt
69 cvs add c.txt
70 cvs commit -m 'Adding c.txt:1.1.4.1'
74 echo "Create branch BRANCH3 from 1.1 versions of b.txt and c.txt:"
75 cvs rtag -r 1.1 -b BRANCH3 proj/b.txt proj/c.txt
77 echo "Create tag TAG1 from 1.1 versions of b.txt and c.txt:"
78 cvs rtag -r 1.1 TAG1 proj/b.txt proj/c.txt