diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2025-05-07 12:10:55 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2025-05-07 16:39:59 +0200 |
commit | b909c514866f1f0713edd831d183e4fa1e5c91f5 (patch) | |
tree | 3654f3655cb10a002c499106bfb01ee62afe9e62 /CC/include_scan | |
parent | eff965fdd8f03668f99d9c90ea9a3f81dabc3b66 (diff) | |
download | rules-cc-b909c514866f1f0713edd831d183e4fa1e5c91f5.tar.gz |
Do not assume out_dirs exist
Diffstat (limited to 'CC/include_scan')
-rwxr-xr-x | CC/include_scan | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CC/include_scan b/CC/include_scan index b7c1590..aaaa77c 100755 --- a/CC/include_scan +++ b/CC/include_scan @@ -30,6 +30,8 @@ set -eu readonly OUT_DIR="$1" shift +mkdir -p "${OUT_DIR}/include" + STDOUT="$("$@")" || exit $? for FILE in $(echo "$STDOUT" | tr ' ' '\n' | sort | uniq); do FILE="$(realpath -s -m --relative-to=. "${FILE}")" |