summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2021-07-30 11:25:44 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-30 10:55:07 +0100
commit39edf868deafe79ffd2ea57620af70840ec4c208 (patch)
tree071455ce9d351eb06a5ef5b3c50d91d203908717
parente8fc67f6f6baf54ccdf548b947c35dea926842c3 (diff)
downloadopenembedded-core-39edf868deafe79ffd2ea57620af70840ec4c208.tar.gz
convert-overrides.py: show processed file and version of this script
* 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>
-rwxr-xr-xscripts/contrib/convert-overrides.py4
1 files changed, 4 insertions, 0 deletions
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)