summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-06-28 16:28:31 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-06-28 17:14:53 +0300
commit1ee0be421b538235fb55f7621f1c7860134220dc (patch)
tree3c3212ea0949304c54382736b3f170082dbdd536 /cli
parent83de480a8bab105dac641f31bf2a9e6adda02fcb (diff)
Don't read LICENSE and load module in root.build files in skeleton mode
Diffstat (limited to 'cli')
-rw-r--r--cli/build/root.build7
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/build/root.build b/cli/build/root.build
index 6132356..0753a9e 100644
--- a/cli/build/root.build
+++ b/cli/build/root.build
@@ -34,6 +34,7 @@ test.target = $cxx.target
#
# Note that cat is a builtin which means this is both portable and fast.
#
-copyright = $process.run_regex(cat $src_root/LICENSE, \
- 'Copyright \(c\) (.+)\.', \
- '\1')
+if ($build.mode != 'skeleton')
+ copyright = $process.run_regex(cat $src_root/LICENSE, \
+ 'Copyright \(c\) (.+)\.', \
+ '\1')