aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-11-28 11:01:04 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-11-28 11:04:02 +0300
commit02bcd2788c37b11049391720e8551124c4f4b58b (patch)
treea68af356418a2c057dbad22931ef361cc16c0eb6 /build
parent7e1095bdbc501260f9e022fa61c4107777cb79e7 (diff)
Use switch in export.build
Diffstat (limited to 'build')
-rw-r--r--build/export.build7
1 files changed, 5 insertions, 2 deletions
diff --git a/build/export.build b/build/export.build
index df4184e..63c5036 100644
--- a/build/export.build
+++ b/build/export.build
@@ -7,5 +7,8 @@ $out_root/
include bpkg-rep/
}
-if ($import.target == exe{bpkg-rep-publish})
- export $out_root/bpkg-rep/exe{bpkg-rep-publish}
+switch $import.target
+{
+ case exe{bpkg-rep-publish}
+ export $out_root/bpkg-rep/exe{bpkg-rep-publish}
+}