Whamcloud - gitweb
b=12302
[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     b_new_cmd)
56         portalstag="b_new_portals"
57         # lnettag="b_lnet_tmp"
58         ;;
59
60     b_cmd*)
61         portalstag="$lustretag"
62         ;;
63
64     b_iam*)
65         portalstag="b_hd_newconfig"
66         # XXX temorary tag until b_iam* is updated from b1_4 liblustre
67         libsysiotag="HEAD_RELEASE_1_4_6_LAND_PARENT_20060223_1455"
68         ;;
69
70     b_ioprovement)
71         portalstag="b_ioprovement"
72         ;;
73
74     b_newconfig_rdmarouting)
75         portalstag="b_hd_newconfig"
76         lnettag="b_newconfig_rdmarouting"
77         lustretag="b1_4"
78         ;;
79
80     b_port_ahead)
81         portalstag="b_port_ahead"
82         ;;
83
84     b_port_netid)
85         portalstag="b_port_netid"
86         ;;
87
88     # b_port_step is only for portals
89     b_port_step)
90         portalstag="b_port_step"
91         lustretag="HEAD"
92         ;;
93
94     b_port_test)
95         portalstag="b_port_test"
96         ;;
97
98     b_ptl_smallfix)
99         portalstag="b_ptl_smallfix"
100         lustretag="b1_4"
101         ;;
102
103     b_ptlrpc_cleanup)
104         portalstag="b_ptlrpc_cleanup"
105         ;;
106
107     b_self_test)
108         # lnet self test development branch
109         lnettag="b_self_test"
110         lustretag="HEAD"
111         ;;
112
113     b_mpilnd)
114         # lnet mpilnd development branch
115         lnettag="b_mpilnd"
116         lustretag="HEAD"
117         ;;
118
119     b_usocklnd)
120         # lnet usocklnd development branch
121         lnettag="b_usocklnd"
122         lustretag="b1_6_usocklnd"
123         ;;
124
125     # before 1_4_6, we didn't have lnet or snmp
126     b_release_1_2_*|b_release_1_4_[0-5])
127         portalstag="$lustretag"
128         lnettag=""
129         libsysiotag="$lustretag"
130         snmptag=""
131         ;;
132
133     b_release_1_4_6-patchless)
134         portalstag=b_release_1_4_6
135         lnettag=b_release_1_4_6-patchless
136         libsysiotag=b_release_1_4_6
137         snmptag=b_release_1_4_6
138         ;;
139
140     b_release_1_4_6)
141         portalstag="$lustretag"
142         lnettag="$lustretag"
143         libsysiotag="$lustretag"
144         snmptag="$lustretag"
145         ;;
146
147     # all later b_release_* tags
148     b_release_*)
149         lnettag="$lustretag"
150         libsysiotag="$lustretag"
151         snmptag="$lustretag"
152         ;;
153
154     # uOSS
155     b_uoss)
156         lnettag="b_uoss"
157         ;;
158     
159     # CMD3
160     b_post_cmd3|b1_8_gssfix|b_new_cmd_sles10)
161         ldiskfstag="b1_8_iam"
162         ;;
163
164     # v1.0-v1.3, v1.4.0-v1.4.2
165     v1_[0-3]_*|v1_4_[0-2]|v1_4_[0-2]_*)
166         portalstag="$lustretag"
167         lnettag=""
168         libsysiotag="$lustretag"
169         snmptag=""
170         ;;
171
172     # v1.4.3-v1.4.5, v1.4.5.1 - v1.4.5.9
173     v1_4_[3-5]|v1_4_[3-4]_*|v1_4_5_[1-9]|cray_2005*)
174         portalstag="$lustretag"
175         lnettag=""
176         libsysiotag="$lustretag"
177         snmptag="$lustretag"
178         ;;
179
180     # v1.4.6, v1.4.6.[1-91]
181     v1_4_6_[1-9]|v1_4_6_9[01])
182         portalstag="$lustretag"
183         lnettag=""
184         libsysiotag="$lustretag"
185         snmptag="$lustretag"
186         ;;
187
188     # all later v* tags
189     v[1-9]*)
190         lnettag="$lustretag"
191         libsysiotag="$lustretag"
192         snmptag="$lustretag"
193         ;;
194 esac
195
196 cvs_cmd libsysio libsysio "$libsysiotag"
197 cvs_cmd portals portals "$portalstag"
198 cvs_cmd lnet lnet "$lnettag"
199 cvs_cmd snmp lustre-snmp "$snmptag"
200 cvs_cmd lustre lustre-core "$lustretag"
201 cvs_cmd ldiskfs ldiskfs "$ldiskfstag"
202
203 [ -a ldiskfs/build ] || ln -sf ../build ldiskfs/build