Whamcloud - gitweb
i=adilger
[fs/lustre-release.git] / build / buildcvs
1 # This file is sourced by lustre/lustrecvs
2
3 portalstag=""
4 lnettag="b1_x"
5 libsysiotag="HEAD"
6 snmptag="HEAD"
7 ldiskfstag="HEAD"
8 ldiskfstag_head="b1_8_iam"
9 lustreiokittag="HEAD"
10 dmutag=""
11 hg_base_url="http://www.wizy.org/mercurial"
12
13 export LC_COLLATE=C
14
15 case "$lustretag" in
16     '')
17         warn "a lustretag is required."
18         usage >&2
19         exit 1
20         ;;
21     --help | -h)
22         usage
23         exit 0
24         ;;
25
26     # this is the branch table
27     # keep this list sorted alphabetically!
28
29     # Note these are "specials" -- branches using lnet b1_x don't need an
30     # entry here.
31
32     b1_2)
33         portalstag="b1_2"
34         lnettag=""
35         libsysiotag=""
36         snmptag=""
37         ;;
38
39     b1_4_atime_update)
40         portalstag="b_hd_newconfig"
41         ;;
42
43     b1_4_join)
44         portalstag="b_hd_newconfig"
45         ;;
46
47     b1_4_lfs_df)
48         portalstag="b_hd_newconfig"
49         ;;
50
51     b1_4_lov_lvb_cleanup)
52         portalstag="b_hd_newconfig"
53         ;;
54
55     b1_4_next_recovery_transno)
56         portalstag="b_hd_newconfig"
57         ;;
58
59     b_cmd*)
60         portalstag="$lustretag"
61         ;;
62
63     b_iam*)
64         portalstag="b_hd_newconfig"
65         # XXX temorary tag until b_iam* is updated from b1_4 liblustre
66         libsysiotag="HEAD_RELEASE_1_4_6_LAND_PARENT_20060223_1455"
67         ;;
68
69     b_ioprovement)
70         portalstag="b_ioprovement"
71         ;;
72
73     b_mpilnd)
74         # lnet mpilnd development branch
75         lnettag="b_mpilnd"
76         lustretag="HEAD"
77         ;;
78
79     b_new_cmd)
80         portalstag="b_new_portals"
81         # lnettag="b_lnet_tmp"
82         ;;
83
84     b_newconfig_rdmarouting)
85         portalstag="b_hd_newconfig"
86         lnettag="b_newconfig_rdmarouting"
87         lustretag="b1_4"
88         ;;
89
90     b_port_ahead)
91         portalstag="b_port_ahead"
92         ;;
93
94     b_port_netid)
95         portalstag="b_port_netid"
96         ;;
97
98     # b_port_step is only for portals
99     b_port_step)
100         portalstag="b_port_step"
101         lustretag="HEAD"
102         ;;
103
104     b_port_test)
105         portalstag="b_port_test"
106         ;;
107
108     b_ptlrpc_cleanup)
109         portalstag="b_ptlrpc_cleanup"
110         ;;
111
112     b_ptl_smallfix)
113         portalstag="b_ptl_smallfix"
114         lustretag="b1_4"
115         ;;
116
117     # before 1_4_6, we didn't have lnet or snmp
118     b_release_1_2_*|b_release_1_4_[0-5])
119         portalstag="$lustretag"
120         lnettag=""
121         libsysiotag="$lustretag"
122         snmptag=""
123         ;;
124
125     b_release_1_4_6)
126         portalstag="$lustretag"
127         lnettag="$lustretag"
128         libsysiotag="$lustretag"
129         snmptag="$lustretag"
130         ;;
131
132     b_release_1_4_6-patchless)
133         portalstag=b_release_1_4_6
134         lnettag=b_release_1_4_6-patchless
135         libsysiotag=b_release_1_4_6
136         snmptag=b_release_1_4_6
137         ;;
138
139     # all later b_release_* tags
140     b_release_*)
141         lnettag="$lustretag"
142         libsysiotag="$lustretag"
143         snmptag="$lustretag"
144         ldiskfstag="$lustretag"
145         ;;
146
147     b_self_test)
148         # lnet self test development branch
149         lnettag="b_self_test"
150         lustretag="HEAD"
151         ;;
152
153     b_usocklnd)
154         # lnet usocklnd development branch
155         lnettag="b_usocklnd"
156         lustretag="b1_6_usocklnd"
157         ;;
158
159     b_uo2iblnd)
160         # lnet u-o2iblnd development branch
161         lnettag="b_uo2iblnd"
162         lustretag="HEAD"
163         ;;
164
165     b_ula)
166         # lnet "User Level Access" development branch
167         lnettag="b_ula"
168         lustretag="HEAD"
169         ldiskfstag="$ldiskfstag_head"
170         ;;
171
172     HEAD|b_HEAD_*|b_head_*|b_hd_*)
173         lnettag="HEAD"
174         ldiskfstag="$ldiskfstag_head"
175         ;;
176
177     # CMD3
178     b_post_cmd3|b_new_cmd_sles10|b1_6_head_sync|b_mixed_layout_req|b_mount_perm|b1_8_gns|b1_8_quota|b1_8_interop_server|b_som)
179         # Update b1_8 above when changing this.
180         ldiskfstag="$ldiskfstag_head"
181         ;;
182
183     #umds cleanup
184     b_hd_umds_cln2)
185         ldiskfstag="b1_8_iam_dynlock"
186         ;;
187
188     # uOSS
189     b_hd_dmu)
190         lnettag="b_uoss"
191         ldiskfstag="$ldiskfstag_head"
192         dmutag="zfs-lustre"
193         ;;
194
195     # uMDS
196     b_dmu_umds)
197         lnettag="b_uoss_umds"
198         ldiskfstag="$ldiskfstag_head"
199         dmutag="zfs-lustre"
200         ;;
201
202     # uOSS o2iblnd
203     b_uoss_o2iblnd)
204         lnettag="b_uoss_o2iblnd"
205         lustretag="b_hd_dmu"
206         ldiskfstag="$ldiskfstag_head"
207         dmutag="zfs-lustre"
208         ;;
209
210     # client io stack cleanup
211     b_client_io_layering)
212         ldiskfstag="$ldiskfstag_head"
213         ;;
214     
215     # windows client porting (lustre: b_client_io_layering, lnet: HEAD) 
216     b_winnt_port)
217         ldiskfstag="$ldiskfstag_head"
218         lnettag="$lustretag"
219         ;;
220     
221     # v1.0-v1.3, v1.4.0-v1.4.2
222     v1_[0-3]_*|v1_4_[0-2]|v1_4_[0-2]_*)
223         portalstag="$lustretag"
224         lnettag=""
225         libsysiotag="$lustretag"
226         snmptag=""
227         ;;
228
229     # v1.4.3-v1.4.5, v1.4.5.1 - v1.4.5.9
230     v1_4_[3-5]|v1_4_[3-4]_*|v1_4_5_[1-9]|cray_2005*)
231         portalstag="$lustretag"
232         lnettag=""
233         libsysiotag="$lustretag"
234         snmptag="$lustretag"
235         ;;
236
237     # v1.4.6, v1.4.6.[1-91]
238     v1_4_6_[1-9]|v1_4_6_9[01])
239         portalstag="$lustretag"
240         lnettag=""
241         libsysiotag="$lustretag"
242         snmptag="$lustretag"
243         ;;
244
245     # all later v* tags
246     v[1-9]*)
247         lnettag="$lustretag"
248         libsysiotag="$lustretag"
249         snmptag="$lustretag"
250         ldiskfstag="$lustretag"
251         ;;
252 esac
253
254 cvs_cmd libsysio libsysio "$libsysiotag"
255 cvs_cmd portals portals "$portalstag"
256 cvs_cmd lnet lnet "$lnettag"
257 cvs_cmd snmp lustre-snmp "$snmptag"
258 cvs_cmd lustre lustre-core "$lustretag"
259 cvs_cmd ldiskfs ldiskfs "$ldiskfstag"
260 cvs_cmd lustre-iokit lustre-iokit "$lustreiokittag"
261 hg_cmd zfs-lustre "$hg_base_url" "$dmutag"
262
263 [ -a ldiskfs/build ] || ln -sf ../build ldiskfs/build