From 9c6ec7266021045896a5e6d06407865b7e0d43a2 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 28 Nov 2019 10:56:54 +0300 Subject: Use switch in export.build --- build/export.build | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'build') diff --git a/build/export.build b/build/export.build index ac9b325..7ae4879 100644 --- a/build/export.build +++ b/build/export.build @@ -7,9 +7,11 @@ $out_root/ include bbot/ } -if ($import.target == exe{bbot-agent}) - export $out_root/bbot/exe{bbot-agent} -elif ($import.target == exe{bbot-worker}) - export $out_root/bbot/exe{bbot-worker} -else - fail "unknown target $import.target" +switch $import.target +{ + case exe{bbot-agent} + export $out_root/bbot/exe{bbot-agent} + + case exe{bbot-worker} + export $out_root/bbot/exe{bbot-worker} +} -- cgit v1.1