forked from InsightSoftwareConsortium/ITK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.vxl
104 lines (72 loc) · 3.84 KB
/
README.vxl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
The vxl subdirectory contains a portion of the vxl project from
http://vxl.sourceforge.net
The vxl-upstream branch in the vxl subdirectory contains the latest
version of vxl that has been copied into ITK. Sticky tags on the
branch mark versions that have been merged into the ITK trunk.
MOST RECENTLY MERGED TAG: vxl-upstream-2007-11-09
See below for instructions to upgrade the vxl version.
------------------------------------------------------------------------------
In order to upgrade the vxl version contained follow the steps below.
Make sure other developers know to not change the Utilities/vxl
directory during this process.
1.) Create a checkout of ITK and make sure there are no modified
files.
2.) Move your checkout to the "vxl-upstream" branch:
cd /path/to/Insight/Utilities/vxl
cvs update -dAP -r vxl-upstream
3.) Checkout the desired vxl version in another directory.
For this example we use 2007-11-09 because that is the date
on which this README was written.
Create a tarball containing the needed portion:
cd /path/to/upstream/ # the export command below will create a "vxl" subdir
cvs -d:ext:USERNAME@vxl.cvs.sourceforge.net:/cvsroot/vxl \
export -kv "-D2007-11-09 11:00" \
vxl/CMakeLists.txt vxl/v3p/CMakeLists.txt vxl/v3p/netlib vxl/vcl \
vxl/config/cmake vxl/core/vnl vxl/core/vxl_config.h.in \
vxl/core/vxl_copyright.h vxl/core/vxl_version.h \
vxl/core/CMakeLists.txt vxl/core/testlib
References below to /path/to/upstream/vxl refer to the vxl subdir that was
created by the export command.
4.) Copy the exported directory into the vxl subdirectory in Insight/Utilities:
cd /path/to/Insight/Utilities/vxl
cp -pr /path/to/upstream/vxl .
5.) Use diff to make sure the directories are the same. If there are
any files reported as "Only in ./something" they should be removed
with "rm ./something" followed by "cvs rm ./something".
cd /path/to/Insight/Utilities/vxl
diff -r -x CVS . /path/to/upstream/vxl
6.) Use "cvs -nq up" to identify files and directories that have
been added. Use "cvs add" and "cvs rm" to prepare all the
changes for checkin.
7.) Commit the changes to the vxl-upstream branch.
cd /path/to/Insight/Utilities/vxl
cvs commit -m "ENH: Updating vxl-upstream branch to 2007-11-09 vxl version."
8.) Create a sticky tag on the branch to mark the vxl upstream version:
cd /path/to/Insight/Utilities/vxl
cvs tag vxl-upstream-2007-11-09
9.) Move your checkout back to the trunk of ITK:
cd /path/to/Insight/Utilities/vxl
cvs update -dAP
10.) Create a sticky tag on the trunk to mark the state before the vxl
upgrade. Note this tag should appear on the entire ITK tree:
cd /path/to/Insight
cvs tag ITK-vxl-2007-11-09-merge-pre
11.) Merge changes from the vxl-upstream branch from between the last
merge and the new version. In this example the previous merge
pulled changes up through the vxl-upstream-1-2-0 tag onto the trunk.
Our new tag is vxl-upstream-2006-07-20. See the top of this file
or the cvs log of Insight/Utilities/vxl/core/vxl_version.h to identify
the most recent version that has been merged.
cd /path/to/Insight/Utilities/vxl
cvs update -d -j vxl-upstream-2006-07-20 -j vxl-upstream-2007-11-09
12.) Manually resolve conflicts and test building ITK. THIS STEP CONTAINS
THE MAJORITY OF THE WORK IN MANUALLY EDITING VXL SOURCES FOR ITK.
Once everything builds and the tests pass it is safe to move on.
13.) Commit all changes to the entire ITK tree:
cd /path/to/Insight
cvs commit -m "ENH: Merging changes from vxl-upstream-2006-07-20 to vxl-upstream-2007-11-09"
14.) Create a sticky tag on the trunk to mark the state after the vxl
upgrade. Note this tag should appear on the entire ITK tree:
cd /path/to/Insight
cvs tag ITK-vxl-2007-11-09-merge-post
15.) Watch the dashboard!