Add a test of non-ascii contents in a .cvsignore file.
[cvs2svn.git] / test-data / exclude-ntdb-cvsrepos / makerepo.sh
blob412f1f4a17423dd26ad2b070e3e29c28939ef683
1 #! /bin/sh
3 # Run script from the main cvs2svn directory to create the
4 # exclude-ntdb cvs repository.
6 CVSROOT=`pwd`/test-data/exclude-ntdb-cvsrepos
7 TMP=cvs2svn-tmp
9 rm -rf $TMP
10 mkdir $TMP
12 cd $TMP
14 #cvs -d $CVSROOT init
15 rm -rf $CVSROOT/proj
17 mkdir proj
19 echo 'Import proj/file.txt:'
20 cd proj
21 echo '1.1.1.1' >file.txt
22 cvs -d $CVSROOT import -m "First import" proj vendorbranch vendortag1
23 sleep 2
24 cd ..
26 echo 'Check out the repository:'
27 cvs -d $CVSROOT co -d wc .
29 echo 'Add a tag and a branch to trunk (these appear on revision 1.1.1.1)'
30 echo 'and commit a revision on the branch:'
31 cd wc/proj
32 cvs tag tag1
33 cvs tag -b branch1
34 cvs up -r branch1
35 echo 1.1.1.1.2.1 >file.txt
36 cvs ci -m 'Commit on branch branch1'
37 sleep 2
38 cd ../..
40 echo 'Import proj/file.txt a second time:'
41 cd proj
42 echo '1.1.1.2' >file.txt
43 cvs -d $CVSROOT import -m "Second import" proj vendorbranch vendortag2
44 sleep 2
45 cd ..
47 echo 'Add a second tag and branch to trunk (these appear on revision'
48 echo '1.1.1.2) and commit a revision on the branch:'
49 cd wc/proj
50 cvs up -A
51 cvs tag tag2
52 cvs tag -b branch2
53 cvs up -r branch2
54 echo 1.1.1.2.2.1 >file.txt
55 cvs ci -m 'Commit on branch branch2'
56 sleep 2
57 cd ../..
59 echo 'Commit directly to trunk. This creates a revision 1.2 and'
60 echo 'changes the default branch back to trunk:'
61 cd wc/proj
62 cvs up -A
63 echo '1.2' >file.txt
64 cvs ci -m 'First explicit commit on trunk'
65 sleep 2
66 cd ../..
68 echo 'Import again. This import is no longer on the non-trunk vendor'
69 echo 'branch, so it does not have any effect on trunk:'
70 cd proj
71 echo '1.1.1.3' >file.txt
72 cvs -d $CVSROOT import -m "Third import" proj vendorbranch vendortag3
73 sleep 2
74 cd ..
76 echo 'Create a tag and a branch explicitly from the vendor branch, and'
77 echo 'commit a revision on the branch:'
78 cd wc/proj
79 cvs up -r vendorbranch
80 cvs tag tag3
81 cvs tag -b branch3
82 cvs up -r branch3
83 echo 1.1.1.3.2.1 >file.txt
84 cvs ci -m 'Commit on branch branch3'
85 sleep 2
86 cd ../..