The smart build command now saves the build command in a file smart-build.log. This way
authorIsaac Dooley <idooley2@illinois.edu>
Thu, 6 Dec 2007 00:37:31 +0000 (00:37 +0000)
committerIsaac Dooley <idooley2@illinois.edu>
Thu, 6 Dec 2007 00:37:31 +0000 (00:37 +0000)
it is easy to refer to what smart-build.pl decided to do.

smart-build.pl

index 31d35d90eb3f27f966265b121b5d82b6aa2412b3..e8d2d8acb96789c8ae855bef8ec1e477d43debe8 100755 (executable)
@@ -381,6 +381,10 @@ if($j ne ""){
 
 $build_line = "./build $target $arch ${network_option_string} $compiler $smp $j ${compiler_flags}\n";
 
+open(BUILDLINE, ">smart-build.log");
+print BUILDLINE "Using the following build command:\n$build_line\n";
+close(BUILDLINE);
+
 if(-e "src/arch/$arch"){
        print "Building with: ${build_line}\n"; 
        system($build_line);