diff options
author | Oleksiy Obitotskyy yIEf0zt.mo <oobitots@cisco.com> | 2021-01-19 05:02:59 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-20 22:46:18 +0000 |
commit | ed410b5dd87c8b512cf9d69c76c1ac79effa6836 (patch) | |
tree | 67651e6441526843be254a8ec1ed143a277f9210 /meta/files | |
parent | d610e691d09faeff25573276dfe480feb6839c15 (diff) | |
download | poky-ed410b5dd87c8b512cf9d69c76c1ac79effa6836.tar.gz |
toolchain-shar-relocate.sh: Fix handling files with colons
Files could contain colons in name and we should not use
colons (':') as field separator. E.g. perl/python man
pages packages.
(From OE-Core rev: 50d2ed0689f1aed6f33b4992d37e2e991c99eb07)
Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/files')
-rw-r--r-- | meta/files/toolchain-shar-relocate.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/files/toolchain-shar-relocate.sh b/meta/files/toolchain-shar-relocate.sh index 94d288ce05..5433741296 100644 --- a/meta/files/toolchain-shar-relocate.sh +++ b/meta/files/toolchain-shar-relocate.sh | |||
@@ -55,7 +55,7 @@ fi | |||
55 | for replace in "$target_sdk_dir -maxdepth 1" "$native_sysroot"; do | 55 | for replace in "$target_sdk_dir -maxdepth 1" "$native_sysroot"; do |
56 | $SUDO_EXEC find $replace -type f | 56 | $SUDO_EXEC find $replace -type f |
57 | done | xargs -n100 file | grep ":.*\(ASCII\|script\|source\).*text" | \ | 57 | done | xargs -n100 file | grep ":.*\(ASCII\|script\|source\).*text" | \ |
58 | awk -F':' '{printf "\"%s\"\n", $1}' | \ | 58 | awk -F': ' '{printf "\"%s\"\n", $1}' | \ |
59 | grep -Fv -e "$target_sdk_dir/environment-setup-" \ | 59 | grep -Fv -e "$target_sdk_dir/environment-setup-" \ |
60 | -e "$target_sdk_dir/relocate_sdk" \ | 60 | -e "$target_sdk_dir/relocate_sdk" \ |
61 | -e "$target_sdk_dir/post-relocate-setup" \ | 61 | -e "$target_sdk_dir/post-relocate-setup" \ |