really be quiet
authorboehmes
Wed, 23 Mar 2011 10:21:29 +0100
changeset 42070 d3404f32328a
parent 42069 6a147393c62a
child 42073 217a1b61d42d
really be quiet
src/HOL/Mirabelle/lib/scripts/mirabelle.pl
--- a/src/HOL/Mirabelle/lib/scripts/mirabelle.pl	Wed Mar 23 09:15:49 2011 +0100
+++ b/src/HOL/Mirabelle/lib/scripts/mirabelle.pl	Wed Mar 23 10:21:29 2011 +0100
@@ -127,16 +127,18 @@
 close(LOG_FILE);
 
 my $quiet = "";
+my $output_log = 1;
 if (defined $be_quiet and $be_quiet ne "") {
   $quiet = " > /dev/null 2>&1";
+  $output_log = 0;
 }
 
-print "Mirabelle: $thy_file\n" if ($quiet ne "");
+if ($output_log) { print "Mirabelle: $thy_file\n"; }
 
 my $result = system "\"$ENV{'ISABELLE_PROCESS'}\" " .
   "-e 'use_thy \"$path/$new_thy_name\" handle _ => exit 1;\n' -q $mirabelle_logic" . $quiet;
 
-print "Finished:  $thy_file\n" if ($quiet ne "");
+if ($output_log) { print "Finished:  $thy_file\n"; }
 
 
 # cleanup