From 87471ab92dc4c0089d021db3faa27ed2f929fb6b Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 18 Jan 2020 14:03:18 +0000 Subject: Add a function for showing a command whilst executing it. --- make/common.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'make') 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; -- cgit v1.2.3