From b75fde17a0e9780b03e6629a03ebbb426a3c5ccb Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Thu, 15 Mar 2012 00:28:20 +0200 Subject: [PATCH] build.pl: Log build command Signed-off-by: Vladimir Sokolovsky --- build.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.pl b/build.pl index de5b528..46633cf 100755 --- a/build.pl +++ b/build.pl @@ -1,5 +1,5 @@ #!/usr/bin/perl -# Copyright (c) 2010 Mellanox Technologies. All rights reserved. +# Copyright (c) 2012 Mellanox Technologies. All rights reserved. # # This Software is licensed under one of the following licenses: # @@ -527,6 +527,7 @@ sub get_srpm ### MAIN ### +my $command = "$0 @ARGV"; while ( $#ARGV >= 0 ) { my $cmd_flag = shift(@ARGV); @@ -587,6 +588,7 @@ if ($build_release) { $log = "$CWD/$distribution.build.log"; rmtree $log; open (LOG, ">$log") or die "Can't open $log: $!\n"; +print LOG "Running: $command\n"; chdir $CWD; if (not $skip_prebuild and -f "$prebuild") { -- 2.41.0