Whamcloud - gitweb
b=20748
[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="HEAD"
9 lustreiokittag="HEAD"
10 libcfstag="b1_x"
11 dmutag="" # uDMU
12 spltag=""
13 zfstag=""
14 hg_base_url="http://www.wizy.org/mercurial"
15 git_base_url="git@git.lustre.org:%s.git"
16
17 export LC_COLLATE=C
18
19 case "$lustretag" in
20     '')
21         warn "a lustretag is required."
22         usage >&2
23         exit 1
24         ;;
25     --help | -h)
26         usage
27         exit 0
28         ;;
29
30     # this is the branch table
31     # keep this list sorted alphabetically!
32
33     # Note these are "specials" -- branches using lnet b1_x don't need an
34     # entry here.
35
36     b1_2)
37         portalstag="b1_2"
38         lnettag=""
39         libsysiotag=""
40         snmptag=""
41         ;;
42
43     b1_4_atime_update)
44         portalstag="b_hd_newconfig"
45         ;;
46
47     b1_4_join)
48         portalstag="b_hd_newconfig"
49         ;;
50
51     b1_4_lfs_df)
52         portalstag="b_hd_newconfig"
53         ;;
54
55     b1_4_lov_lvb_cleanup)
56         portalstag="b_hd_newconfig"
57         ;;
58
59     b1_4_next_recovery_transno)
60         portalstag="b_hd_newconfig"
61         ;;
62
63     b_cmd_cray)
64         lnettag="HEAD"
65         ldiskfstag="$ldiskfstag_head"
66         libcfstag="HEAD"
67         ;;
68
69     b_cmd*)
70         portalstag="$lustretag"
71         ;;
72
73     b_iam*)
74         portalstag="b_hd_newconfig"
75         # XXX temorary tag until b_iam* is updated from b1_4 liblustre
76         libsysiotag="HEAD_RELEASE_1_4_6_LAND_PARENT_20060223_1455"
77         ;;
78
79     b_ioprovement)
80         portalstag="b_ioprovement"
81         ;;
82
83     b_mpilnd)
84         # lnet mpilnd development branch
85         lnettag="b_mpilnd"
86         lustretag="HEAD"
87         ;;
88
89     b_new_cmd)
90         portalstag="b_new_portals"
91         # lnettag="b_lnet_tmp"
92         ;;
93
94     b_newconfig_rdmarouting)
95         portalstag="b_hd_newconfig"
96         lnettag="b_newconfig_rdmarouting"
97         lustretag="b1_4"
98         ;;
99
100     b_port_ahead)
101         portalstag="b_port_ahead"
102         ;;
103
104     b_port_netid)
105         portalstag="b_port_netid"
106         ;;
107
108     # b_port_step is only for portals
109     b_port_step)
110         portalstag="b_port_step"
111         lustretag="HEAD"
112         ;;
113
114     b_port_test)
115         portalstag="b_port_test"
116         ;;
117
118     b_ptlrpc_cleanup)
119         portalstag="b_ptlrpc_cleanup"
120         ;;
121
122     b_ptl_smallfix)
123         portalstag="b_ptl_smallfix"
124         lustretag="b1_4"
125         ;;
126
127     # before 1_4_6, we didn't have lnet or snmp
128     b_release_1_2_*|b_release_1_4_[0-5])
129         portalstag="$lustretag"
130         lnettag=""
131         libsysiotag="$lustretag"
132         snmptag=""
133         ;;
134
135     b_release_1_4_6)
136         portalstag="$lustretag"
137         lnettag="$lustretag"
138         libsysiotag="$lustretag"
139         snmptag="$lustretag"
140         ;;
141
142     b_release_1_4_6-patchless)
143         portalstag=b_release_1_4_6
144         lnettag=b_release_1_4_6-patchless
145         libsysiotag=b_release_1_4_6
146         snmptag=b_release_1_4_6
147         ;;
148
149     # all later b_release_* tags
150     b_release_*)
151         lnettag="$lustretag"
152         libsysiotag="$lustretag"
153         snmptag="$lustretag"
154         ldiskfstag="$lustretag"
155         ;;
156
157     b_self_test)
158         # lnet self test development branch
159         lnettag="b_self_test"
160         lustretag="HEAD"
161         ;;
162
163     b_usocklnd)
164         # lnet usocklnd development branch
165         lnettag="b_usocklnd"
166         lustretag="b1_6_usocklnd"
167         ;;
168
169     b_uo2iblnd)
170         # lnet u-o2iblnd development branch
171         lnettag="b_uo2iblnd"
172         lustretag="HEAD"
173         ;;
174
175     b_hd_smp)
176         # LNet grained locking and SMP improvement branch
177         libcfstag="b_hd_libcfs_smp"
178         lnettag="b_hd_lnet_smp"
179         ldiskfstag="$ldiskfstag_head"
180         lustretag="b_hd_lustre_smp"
181         ;;
182
183     b_hd_md_perf)
184         # LNet branch for new o2iblnd protocol (15983, 13621, 14425, 14358)
185         lnettag="HD_LNET_SMP_BASE"
186         ldiskfstag="$ldiskfstag_head"
187         lustretag="HD_LUSTRE_SMP_BASE"
188         libcfstag="HD_LIBCFS_SMP_BASE"
189         ;;
190
191     b_ula)
192         # lnet "User Level Access" development branch
193         lnettag="b_ula"
194         lustretag="HEAD"
195         ldiskfstag="$ldiskfstag_head"
196         ;;
197
198     # CMD3
199     b_post_cmd3|b_new_cmd_sles10|b1_6_head_sync|b_mixed_layout_req|b_mount_perm|b1_8_gns|b1_8_interop_server)
200         # Update b1_8 above when changing this.
201         ldiskfstag="$ldiskfstag_head"
202         ;;
203
204     #umds cleanup
205     b_hd_umds_cln2)
206         ldiskfstag="b1_8_iam_dynlock"
207         ;;
208
209     # uOSS
210     b_hd_dmu)
211         lnettag="b_uoss"
212         ldiskfstag="$ldiskfstag_head"
213         dmutag="zfs-lustre"
214         ;;
215
216     # read-only cache for oss
217     b_hd_rocache_oss)
218         lnettag="HEAD"
219         ldiskfstag="b1_8_iam"
220         libcfstag="HEAD"
221         ;;
222  
223     # vector read/write 
224     b_hd_readx)
225         lnettag="HEAD"
226         ldiskfstag="$ldiskfstag_head"
227         libcfstag="HEAD"
228         ;;
229    
230     # params_tree 
231     b_hd_params_tree)
232         lnettag="b_hd_params_tree"
233         ldiskfstag="$ldiskfstag_head"
234         libcfstag="b_hd_params_tree"
235         lustretag="b_hd_params_tree"
236         ;;
237   
238     # Network request scheduler
239     b_hd_nrs)
240         lnettag="HEAD"
241         ldiskfstag="$ldiskfstag_head"
242         libcfstag="HEAD"
243         ;;
244  
245     # uMDS
246     b_dmu_umds)
247         lnettag="b_uoss_umds"
248         ldiskfstag="$ldiskfstag_head"
249         dmutag="zfs-lustre"
250         ;;
251
252     # uOSS o2iblnd
253     b_uoss_o2iblnd)
254         lnettag="b_uoss_o2iblnd"
255         lustretag="b_hd_dmu"
256         ldiskfstag="$ldiskfstag_head"
257         dmutag="zfs-lustre"
258         ;;
259
260     # client io stack cleanup
261     b_client_io_layering)
262         lnettag="HEAD"
263         ldiskfstag="$ldiskfstag_head"
264         libcfstag="HEAD"
265         ;;
266     
267     # HEAD cmd fixes
268     b_head_cmd)
269         lnettag="HEAD"
270         ldiskfstag="$ldiskfstag_head"
271         libcfstag="HEAD"
272         ;;
273     
274     # windows client porting (lustre: b_client_io_layering, lnet: HEAD) 
275     b_winnt_port)
276         ldiskfstag="$ldiskfstag_head"
277         lnettag="b_winnt_port"
278         libcfstag="b_winnt_port"
279         ;;
280     
281     # v1.0-v1.3, v1.4.0-v1.4.2
282     v1_[0-3]_*|v1_4_[0-2]|v1_4_[0-2]_*)
283         portalstag="$lustretag"
284         lnettag=""
285         libsysiotag="$lustretag"
286         snmptag=""
287         ;;
288
289     # v1.4.3-v1.4.5, v1.4.5.1 - v1.4.5.9
290     v1_4_[3-5]|v1_4_[3-4]_*|v1_4_5_[1-9]|cray_2005*)
291         portalstag="$lustretag"
292         lnettag=""
293         libsysiotag="$lustretag"
294         snmptag="$lustretag"
295         ;;
296
297     # v1.4.6, v1.4.6.[1-91]
298     v1_4_6_[1-9]|v1_4_6_9[01])
299         portalstag="$lustretag"
300         lnettag=""
301         libsysiotag="$lustretag"
302         snmptag="$lustretag"
303         ;;
304
305     # Interoperability server side changes
306     b_head_interop_disk)
307         lnettag="HEAD"
308         ldiskfstag="b_ldiskfs_interop_server"
309         libcfstag="HEAD"
310         ;;
311
312     # libcfs name normalization changes
313     b_hd_nn)
314         libcfstag="b_hd_libcfs_nn"
315         lnettag="b_hd_lnet_nn"
316         ldiskfstag="$ldiskfstag_head"
317         lustretag="b_hd_lustre_nn"
318         ;; 
319
320     # Branches that have been updated to include
321     # the libcfs split should be added here
322     HEAD|b_head_capa|b_hd_cfld|b_hd_changelog|b_hd_sptlrpc|HD_SPTLRPC_BASE|b_som|b_hd_recov|b_hd_transapi)
323         lnettag="HEAD"
324         ldiskfstag="$ldiskfstag_head"
325         libcfstag="HEAD"
326         ;;
327
328     b_hd_kdmu)
329         # Identical to HEAD + spl and zfs
330         lnettag="HEAD"
331         ldiskfstag="$ldiskfstag_head"
332         libcfstag="HEAD"
333         spltag="pre-alpha"
334         zfstag="patched"
335         ;;
336     b_kdmu_params)
337         # Identical to HEAD + spl and zfs
338         lnettag="b_hd_params_tree"
339         ldiskfstag="$ldiskfstag_head"
340         libcfstag="b_hd_params_tree"
341         lustretag="b_kdmu_params"
342         spltag="pre-alpha"
343         zfstag="patched"
344         ;;
345
346     b_head_libcfs)
347         lnettag="b_head_libcfs"
348         ldiskfstag="$ldiskfstag_head"
349         libcfstag="b_head_libcfs"
350         ;;
351
352     b_head_procfs)
353         lnettag="HEAD"
354         ldiskfstag="$ldiskfstag_head"
355         libcfstag="b_head_procfs"
356         ;;
357
358     b2_0-bld*)
359         lnettag="$lustretag"
360         ldiskfstag="$ldiskfstag_head"
361         libcfstag="$lustretag"
362         ;;
363
364     # all later v* tags
365     v[1-9]*)
366         lnettag="$lustretag"
367         libsysiotag="$lustretag"
368         snmptag="$lustretag"
369         ldiskfstag="$lustretag"
370         libcfstag="$lustretag"
371         ;;
372
373     b_HEAD_*|b_head_*|b_hd_*)
374         lnettag="HEAD"
375         ldiskfstag="$ldiskfstag_head"
376         libcfstag="HEAD"
377         ;;
378 esac
379
380 cvs_cmd libsysio libsysio "$libsysiotag"
381 cvs_cmd portals portals "$portalstag"
382 cvs_cmd lnet lnet "$lnettag"
383 cvs_cmd snmp lustre-snmp "$snmptag"
384 cvs_cmd lustre lustre-core "$lustretag"
385 cvs_cmd ldiskfs ldiskfs "$ldiskfstag"
386 cvs_cmd lustre-iokit lustre-iokit "$lustreiokittag"
387 hg_cmd lustre/zfs-lustre "$hg_base_url" "$dmutag"
388 cvs_cmd libcfs libcfs "$libcfstag"
389 git_cmd spl spl "$spltag" "$git_base_url"
390 git_cmd zfs zfs-tmp "$zfstag" "$git_base_url"
391
392 [ -a ldiskfs/build ] || ln -sf ../build ldiskfs/build