[Users] simfactory build verbose

Steven R. Brandt sbrandt at cct.lsu.edu
Tue Dec 18 17:30:07 CST 2012


I had been under the impression that --verbose would trigger a build 
with VERBOSE=yes from simfactory, but I
gather that the thing that --verbose makes verbose is simfactory itself, 
and not the build process. Would it be
good if make became verbose as well? Here is a crude hack that does it.

Until then, I use this:
Index: simfactory/lib/sim-build.py
===================================================================
--- simfactory/lib/sim-build.py    (revision 1866)
+++ simfactory/lib/sim-build.py    (working copy)
@@ -324,9 +324,13 @@
      DefineDatabase.Set('EMAIL', email)

      make = DefineDatabase.SubAll(machineEntry.GetKey('make'))
+
+    opts = ""
+    if simenv.VERBOSE:
+        opts = "VERBOSE=yes"

      display("Building %s" % configName)
-    ret = simlib.ExecuteCommand("cd %s && %s %s 2>&1" % 
(simenv.CACTUS_PATH, make, configName))
+    ret = simlib.ExecuteCommand("cd %s && %s %s %s 2>&1" % 
(simenv.CACTUS_PATH, make, configName, opts))
      if ret != 0:
          sys.exit(1)



More information about the Users mailing list