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