]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Remove some traces
authoradam <adam>
Tue, 6 Jul 2010 10:22:21 +0000 (10:22 +0000)
committeradam <adam>
Tue, 6 Jul 2010 10:22:21 +0000 (10:22 +0000)
salome_adm/cmake_files/am2cmake.py

index ee7942f51a7056629b7be69393203aed97f6e804..b2c757193580993bc91629d56b3e58a153d7b772 100644 (file)
@@ -1949,6 +1949,8 @@ if __name__ == "__main__":
     from os import getcwd
     the_root = getcwd()
     #
+    nok = 0
+    #
     from os import walk
     for root, dirs, files in walk(the_root):
         # --
@@ -1970,12 +1972,20 @@ if __name__ == "__main__":
         from sys import stdout
         for f in files:
             if f in ["Makefile.am", "Makefile.am.cmake"]:
-                stdout.write("Scanning %s %s ..."%(root, f))
-                stdout.flush()
                 convertAmFile(the_root, root, dirs, files, f, module)
-                stdout.write(" done.\n")
+                nok += 1
                 pass
             pass
         pass
     #
+    if nok:
+        if nok == 1:
+            msg = "%s file has been converted to cmake"%(nok)
+        else:
+            msg = "%s files have been converted to cmake"%(nok)
+            pass
+        stdout.write(msg)
+        stdout.write("\n")
+        stdout.flush()
+        pass
     pass