From: Vladimir Sokolovsky Date: Wed, 14 Mar 2012 22:28:20 +0000 (+0200) Subject: build.pl: Log build command X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=b75fde17a0e9780b03e6629a03ebbb426a3c5ccb;p=~aditr%2Fbuild.git build.pl: Log build command Signed-off-by: Vladimir Sokolovsky --- 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") {