diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-11-28 10:56:54 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-11-28 11:04:59 +0300 |
commit | 9c6ec7266021045896a5e6d06407865b7e0d43a2 (patch) | |
tree | cf047be906f460b09270f76da63932c9501ec1fd | |
parent | f891b8f2ca75f2aa8ba34152b6663de633fe4edb (diff) |
Use switch in export.build
-rw-r--r-- | build/export.build | 14 |
1 files changed, 8 insertions, 6 deletions
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} +} |