* 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.ja...@gmail.com>
---
 scripts/contrib/convert-overrides.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/contrib/convert-overrides.py 
b/scripts/contrib/convert-overrides.py
index 499852bd26..68ae356083 100755
--- a/scripts/contrib/convert-overrides.py
+++ b/scripts/contrib/convert-overrides.py
@@ -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)
-- 
2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154263): 
https://lists.openembedded.org/g/openembedded-core/message/154263
Mute This Topic: https://lists.openembedded.org/mt/84546899/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to