]> code.ossystems Code Review - openembedded-core.git/commitdiff
convert-overrides.py: show processed file and version of this script
authorMartin Jansa <Martin.Jansa@gmail.com>
Fri, 30 Jul 2021 09:25:44 +0000 (11:25 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 30 Jul 2021 09:55:07 +0000 (10:55 +0100)
* on bigger layer this script takes couple minutes without showing any progress
* add a version to reference it in the conversion commit (to easily figure out
  if it's worth re-converting the layer).

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/convert-overrides.py

index 499852bd260a8f0d709d486bc11af044b9dd4df8..68ae356083ed5c7325f3ce34da336b3cd31a7d7b 100755 (executable)
@@ -90,6 +90,7 @@ subs = {
 }
 
 def processfile(fn):
+    print("processing file '%s'" % fn)
     try:
         fh, abs_path = tempfile.mkstemp()
         with os.fdopen(fh, 'w') as new_file:
@@ -128,6 +129,7 @@ def processfile(fn):
         pass
 
 ourname = os.path.basename(sys.argv[0])
+ourversion = "0.9.0"
 
 for root, dirs, files in os.walk(targetdir):
    for name in files:
@@ -139,3 +141,5 @@ for root, dirs, files in os.walk(targetdir):
       if "/.git/" in fn or fn.endswith(".html") or fn.endswith(".patch") or fn.endswith(".m4") or fn.endswith(".diff"):
           continue
       processfile(fn)
+
+print("All files processed with version %s" % ourversion)