summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rw-r--r--make/common.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/make/common.pm b/make/common.pm
index 49d4b7798..636c3d5d6 100644
--- a/make/common.pm
+++ b/make/common.pm
@@ -34,6 +34,7 @@ use File::Spec::Functions qw(rel2abs);
use make::console;
our @EXPORT = qw(create_directory
+ execute
get_cpu_count
get_version
read_config_file
@@ -47,6 +48,11 @@ sub create_directory($$) {
} // 0;
}
+sub execute(@) {
+ print_format "<|BOLD \$|> @_\n";
+ return system @_;
+}
+
sub get_version {
state %version;
return %version if %version;