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