Whamcloud - gitweb
While this looks like it should work, and Yury says he tested it working
[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
8 export LC_COLLATE=C
9
10 case "$lustretag" in
11     '')
12         warn "a lustretag is required."
13         usage >&2
14         exit 1
15         ;;
16     --help | -h)
17         usage
18         exit 0
19         ;;
20
21     # this is the branch table
22     # keep this list sorted alphabetically!
23     b1_2)
24         portalstag="b1_2"
25         lnettag=""
26         libsysiotag=""
27         snmptag=""
28         ;;
29
30     b1_4_atime_update)
31         portalstag="b_hd_newconfig"
32         lnettag="b_hd_newconfig"
33         ;;
34
35     b1_4_join)
36         portalstag="b_hd_newconfig"
37         lnettag="b_hd_newconfig"
38         ;;
39
40     b1_4_lfs_df)
41         portalstag="b_hd_newconfig"
42         lnettag="b_hd_newconfig"
43         ;;
44
45     b1_4_lov_lvb_cleanup)
46         portalstag="b_hd_newconfig"
47         lnettag="b_hd_newconfig"
48         ;;
49
50     b1_4_next_recovery_transno)
51         portalstag="b_hd_newconfig"
52         lnettag="b_hd_newconfig"
53         ;;
54
55     b1_4 | b1_4-patchless | b1_4_*)
56         lnettag="b_hd_newconfig"
57         ;;
58
59     b_new_cmd)
60         portalstag="b_new_portals"
61         lnettag="b_hd_newconfig"
62         ;;
63
64     b1_5 | b1_5_*)
65         lnettag="b_hd_newconfig"
66         ;;
67
68     b1_8 | b1_8_*)
69         lnettag="b_hd_newconfig"
70         ;;
71
72     b_cmd*)
73         portalstag="$lustretag"
74         ;;
75
76     b_iam*)
77         portalstag="b_hd_newconfig"
78         lnettag="b_hd_newconfig"
79         # XXX temorary tag until b_iam* is updated from b1_4 liblustre
80         libsysiotag="HEAD_RELEASE_1_4_6_LAND_PARENT_20060223_1455"
81         ;;
82
83     b_ioprovement)
84         portalstag="b_ioprovement"
85         ;;
86
87     b_newconfig_rdmarouting)
88         portalstag="b_hd_newconfig"
89         lnettag="b_newconfig_rdmarouting"
90         lustretag="b1_4"
91         ;;
92
93     b_port_ahead)
94         portalstag="b_port_ahead"
95         ;;
96
97     b_port_netid)
98         portalstag="b_port_netid"
99         ;;
100
101     # b_port_step is only for portals
102     b_port_step)
103         portalstag="b_port_step"
104         lustretag="HEAD"
105         ;;
106
107     b_port_test)
108         portalstag="b_port_test"
109         ;;
110
111     b_ptl_smallfix)
112         portalstag="b_ptl_smallfix"
113         lustretag="b1_4"
114         ;;
115
116     b_ptlrpc_cleanup)
117         portalstag="b_ptlrpc_cleanup"
118         ;;
119
120     # before 1_4_6, we didn't have lnet or snmp
121     b_release_1_2_*|b_release_1_4_[0-5])
122         portalstag="$lustretag"
123         lnettag=""
124         libsysiotag="$lustretag"
125         snmptag=""
126         ;;
127
128     b_release_1_4_6-patchless)
129         portalstag=b_release_1_4_6
130         lnettag=b_release_1_4_6-patchless
131         libsysiotag=b_release_1_4_6
132         snmptag=b_release_1_4_6
133         ;;
134
135     b_release_1_4_6)
136         portalstag="$lustretag"
137         lnettag="$lustretag"
138         libsysiotag="$lustretag"
139         snmptag="$lustretag"
140         ;;
141
142     # all later b_release_* tags
143     b_release_*)
144         lnettag="$lustretag"
145         libsysiotag="$lustretag"
146         snmptag="$lustretag"
147         ;;
148
149     # v1.0-v1.3, v1.4.0-v1.4.2
150     v1_[0-3]_*|v1_4_[0-2]|v1_4_[0-2]_*)
151         portalstag="$lustretag"
152         lnettag=""
153         libsysiotag="$lustretag"
154         snmptag=""
155         ;;
156
157     # v1.4.3-v1.4.5, v1.4.5.1 - v1.4.5.9
158     v1_4_[3-5]|v1_4_[3-4]_*|v1_4_5_[1-9]|cray_2005*)
159         portalstag="$lustretag"
160         lnettag=""
161         libsysiotag="$lustretag"
162         snmptag="$lustretag"
163         ;;
164
165     # v1.4.6, v1.4.6.[1-91]
166     v1_4_6_[1-9]|v1_4_6_9[01])
167         portalstag="$lustretag"
168         lnettag=""
169         libsysiotag="$lustretag"
170         snmptag="$lustretag"
171         ;;
172
173     # all later v* tags
174     v[1-9]*)
175         lnettag="$lustretag"
176         libsysiotag="$lustretag"
177         snmptag="$lustretag"
178         ;;
179 esac
180
181 cvs_cmd libsysio libsysio "$libsysiotag"
182 cvs_cmd portals portals "$portalstag"
183 cvs_cmd lnet lnet "$lnettag"
184 cvs_cmd snmp lustre-snmp "$snmptag"
185 cvs_cmd lustre lustre-core "$lustretag"