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