sdbus++-gen-meson: fix shfmt introduced issue
The meson files generated in PDI were missing entries and caused CI
checks to break. This was caused by a mistake in the shfmt for bash
array syntax, which it assumed was a division operation and not a
string concatenation operation. Work around it by determining the
array key to split the two up.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If28d36347af36d164d655003fcb85e6cc47c5d15
diff --git a/tools/sdbus++-gen-meson b/tools/sdbus++-gen-meson
index 8a05db7..4d0658f 100755
--- a/tools/sdbus++-gen-meson
+++ b/tools/sdbus++-gen-meson
@@ -265,8 +265,9 @@
dir="$(dirname "$rel")"
ext="${rel#*.}"
base="$(basename "$rel" ".$ext")"
+ key="$dir/$base"
- interfaces["$dir/$base"]="${interfaces[dir / base]} $ext"
+ interfaces["$key"]="${interfaces[$key]} $ext"
done
# Create the meson.build files.