summaryrefslogtreecommitdiffstats
path: root/scripts
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:13 +0100
commit1a1bb6ce519618a7104f9fc7ce6591e9837c8c92 (patch)
treecc631dcedd44e2df7062c971419703e18aa67241 /scripts
parent82c1581e4824a778915c1e1fed23851b84fd7cd3 (diff)
downloadpoky-1a1bb6ce519618a7104f9fc7ce6591e9837c8c92.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). (From OE-Core rev: 39edf868deafe79ffd2ea57620af70840ec4c208) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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 = {
90} 90}
91 91
92def processfile(fn): 92def processfile(fn):
93 print("processing file '%s'" % fn)
93 try: 94 try:
94 fh, abs_path = tempfile.mkstemp() 95 fh, abs_path = tempfile.mkstemp()
95 with os.fdopen(fh, 'w') as new_file: 96 with os.fdopen(fh, 'w') as new_file:
@@ -128,6 +129,7 @@ def processfile(fn):
128 pass 129 pass
129 130
130ourname = os.path.basename(sys.argv[0]) 131ourname = os.path.basename(sys.argv[0])
132ourversion = "0.9.0"
131 133
132for root, dirs, files in os.walk(targetdir): 134for root, dirs, files in os.walk(targetdir):
133 for name in files: 135 for name in files:
@@ -139,3 +141,5 @@ for root, dirs, files in os.walk(targetdir):
139 if "/.git/" in fn or fn.endswith(".html") or fn.endswith(".patch") or fn.endswith(".m4") or fn.endswith(".diff"): 141 if "/.git/" in fn or fn.endswith(".html") or fn.endswith(".patch") or fn.endswith(".m4") or fn.endswith(".diff"):
140 continue 142 continue
141 processfile(fn) 143 processfile(fn)
144
145print("All files processed with version %s" % ourversion)