diff options
author | Sadie Powell <sadie@witchery.services> | 2020-01-18 14:03:18 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-01-18 14:25:03 +0000 |
commit | 87471ab92dc4c0089d021db3faa27ed2f929fb6b (patch) | |
tree | 681fc5f4e988d1342d381bf8af6b8285252a008a /make | |
parent | 04b5090a2f65a2e3380a32e5cd0b4936716ec394 (diff) |
Add a function for showing a command whilst executing it.
Diffstat (limited to 'make')
-rw-r--r-- | make/common.pm | 6 |
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; |