Whamcloud - gitweb
Branch HEAD
[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         ;;
147
148     b_self_test)
149         # lnet self test development branch
150         lnettag="b_self_test"
151         lustretag="HEAD"
152         ;;
153
154     # uOSS
155     b_uoss)
156         lnettag="b_uoss"
157         ;;
158     
159     b_usocklnd)
160         # lnet usocklnd development branch
161         lnettag="b_usocklnd"
162         lustretag="b1_6_usocklnd"
163         ;;
164
165     # CMD3
166     HEAD|b_post_cmd3|b1_8_gssfix|b_new_cmd_sles10)
167         # Update b1_8 above when changing this.
168         ldiskfstag="b1_8_iam"
169         ;;
170
171     # v1.0-v1.3, v1.4.0-v1.4.2
172     v1_[0-3]_*|v1_4_[0-2]|v1_4_[0-2]_*)
173         portalstag="$lustretag"
174         lnettag=""
175         libsysiotag="$lustretag"
176         snmptag=""
177         ;;
178
179     # v1.4.3-v1.4.5, v1.4.5.1 - v1.4.5.9
180     v1_4_[3-5]|v1_4_[3-4]_*|v1_4_5_[1-9]|cray_2005*)
181         portalstag="$lustretag"
182         lnettag=""
183         libsysiotag="$lustretag"
184         snmptag="$lustretag"
185         ;;
186
187     # v1.4.6, v1.4.6.[1-91]
188     v1_4_6_[1-9]|v1_4_6_9[01])
189         portalstag="$lustretag"
190         lnettag=""
191         libsysiotag="$lustretag"
192         snmptag="$lustretag"
193         ;;
194
195     # all later v* tags
196     v[1-9]*)
197         lnettag="$lustretag"
198         libsysiotag="$lustretag"
199         snmptag="$lustretag"
200         ;;
201 esac
202
203 cvs_cmd libsysio libsysio "$libsysiotag"
204 cvs_cmd portals portals "$portalstag"
205 cvs_cmd lnet lnet "$lnettag"
206 cvs_cmd snmp lustre-snmp "$snmptag"
207 cvs_cmd lustre lustre-core "$lustretag"
208 cvs_cmd ldiskfs ldiskfs "$ldiskfstag"
209
210 [ -a ldiskfs/build ] || ln -sf ../build ldiskfs/build