diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2021-07-30 11:25:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-30 10:55:13 +0100 |
commit | 1a1bb6ce519618a7104f9fc7ce6591e9837c8c92 (patch) | |
tree | cc631dcedd44e2df7062c971419703e18aa67241 /scripts/contrib | |
parent | 82c1581e4824a778915c1e1fed23851b84fd7cd3 (diff) | |
download | poky-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/contrib')
-rwxr-xr-x | scripts/contrib/convert-overrides.py | 4 |
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 | ||
92 | def processfile(fn): | 92 | def 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 | ||
130 | ourname = os.path.basename(sys.argv[0]) | 131 | ourname = os.path.basename(sys.argv[0]) |
132 | ourversion = "0.9.0" | ||
131 | 133 | ||
132 | for root, dirs, files in os.walk(targetdir): | 134 | for 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 | |||
145 | print("All files processed with version %s" % ourversion) | ||