Skip to content

Commit 9908f47

Browse files
committed
compile-options: Consistent case statement format
Ticket: ENT-12600 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent e8dab1a commit 9908f47

File tree

1 file changed

+39
-13
lines changed

1 file changed

+39
-13
lines changed

build-scripts/compile-options

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -189,25 +189,51 @@ esac
189189
# and build according to the role specified by it.
190190

191191
case "$EXPLICIT_ROLE" in
192-
agent) ROLE=agent;;
193-
hub) ROLE=hub;;
192+
agent)
193+
ROLE=agent
194+
;;
195+
hub)
196+
ROLE=hub
197+
;;
194198
*)
195199
# Not running under Jenkins?
196200
if [ -z "$JENKINS_SERVER_COOKIE" ]
197201
then
198202
case "$PROJECT-$ARCH-$OS-${OS_VERSION}" in
199-
community-*) ROLE=agent;;
203+
community-*)
204+
ROLE=agent
205+
;;
200206
# We do not support 32 bits hubs anymore
201-
nova-i386-*-*) ROLE=agent;;
202-
nova-s390*-*-*) ROLE=agent;;
203-
nova-*-centos-*) ROLE=hub;;
204-
nova-*-debian-*) ROLE=hub;;
205-
nova-*-opensuse-*) ROLE=hub;;
206-
nova-*-rhel-*) ROLE=hub;;
207-
nova-*-sles-*) ROLE=hub;;
208-
nova-*-ubuntu-*) ROLE=hub;;
209-
nova-*-mingw-*) ROLE=agent;;
210-
nova-*) ROLE=agent;;
207+
nova-i386-*-*)
208+
ROLE=agent
209+
;;
210+
nova-s390*-*-*)
211+
ROLE=agent
212+
;;
213+
nova-*-centos-*)
214+
ROLE=hub
215+
;;
216+
nova-*-debian-*)
217+
ROLE=hub
218+
;;
219+
nova-*-opensuse-*)
220+
ROLE=hub
221+
;;
222+
nova-*-rhel-*)
223+
ROLE=hub
224+
;;
225+
nova-*-sles-*)
226+
ROLE=hub
227+
;;
228+
nova-*-ubuntu-*)
229+
ROLE=hub
230+
;;
231+
nova-*-mingw-*)
232+
ROLE=agent
233+
;;
234+
nova-*)
235+
ROLE=agent
236+
;;
211237
*)
212238
echo "Unknown project: $PROJECT"
213239
exit 42

0 commit comments

Comments
 (0)