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_new_cmd)
62         portalstag="b_new_portals"
63         # lnettag="b_lnet_tmp"
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_newconfig_rdmarouting)
81         portalstag="b_hd_newconfig"
82         lnettag="b_newconfig_rdmarouting"
83         lustretag="b1_4"
84         ;;
85
86     b_port_ahead)
87         portalstag="b_port_ahead"
88         ;;
89
90     b_port_netid)
91         portalstag="b_port_netid"
92         ;;
93
94     # b_port_step is only for portals
95     b_port_step)
96         portalstag="b_port_step"
97         lustretag="HEAD"
98         ;;
99
100     b_port_test)
101         portalstag="b_port_test"
102         ;;
103
104     b_ptl_smallfix)
105         portalstag="b_ptl_smallfix"
106         lustretag="b1_4"
107         ;;
108
109     b_ptlrpc_cleanup)
110         portalstag="b_ptlrpc_cleanup"
111         ;;
112
113     b_self_test)
114         # lnet self test development branch
115         lnettag="b_self_test"
116         lustretag="HEAD"
117         ;;
118
119     b_mpilnd)
120         # lnet mpilnd development branch
121         lnettag="b_mpilnd"
122         lustretag="HEAD"
123         ;;
124
125     b_usocklnd)
126         # lnet usocklnd development branch
127         lnettag="b_usocklnd"
128         lustretag="b1_6_usocklnd"
129         ;;
130
131     # before 1_4_6, we didn't have lnet or snmp
132     b_release_1_2_*|b_release_1_4_[0-5])
133         portalstag="$lustretag"
134         lnettag=""
135         libsysiotag="$lustretag"
136         snmptag=""
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     b_release_1_4_6)
147         portalstag="$lustretag"
148         lnettag="$lustretag"
149         libsysiotag="$lustretag"
150         snmptag="$lustretag"
151         ;;
152
153     # all later b_release_* tags
154     b_release_*)
155         lnettag="$lustretag"
156         libsysiotag="$lustretag"
157         snmptag="$lustretag"
158         ;;
159
160     # uOSS
161     b_uoss)
162         lnettag="b_uoss"
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