From 39edf868deafe79ffd2ea57620af70840ec4c208 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Fri, 30 Jul 2021 11:25:44 +0200 Subject: 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 Signed-off-by: Richard Purdie --- 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) -- cgit 1.2.3-korg