v0.7.1: rename C core header to victronble_core.h (fixes #2)
src/ held both VictronBLE.h and victronble.h. On case-insensitive filesystems (Windows, macOS) extracting the library ZIP overwrote one with the other and the Arduino build failed. The core header is now victronble_core.h in include/ and src/, and every include is updated. include/victronble.h stays as a deprecated forwarder so 0.7.0 Zephyr and host code still builds; it is never in src/. check_version.sh now fails if two tracked paths differ only in case.
This commit is contained in:
1 parent
22af47854d
commit
318e221170
18 files changed
+247
-219
No files matched your search
+10
-1
@@ -4,7 +4,8 @@
|
||||
#
|
||||
# Read-only: confirms the version matches in both manifests and that a matching
|
||||
# git tag (vX.Y.Z) exists. Run it before tagging a release. Non-zero exit if the
|
||||
# versions disagree or the tag is missing.
|
||||
# versions disagree, the tag is missing, or two tracked paths differ only in
|
||||
# case (they collide when the ZIP is extracted on Windows or macOS).
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
@@ -31,4 +32,12 @@ else
|
||||
echo "FAIL no git tag v$json -- create one to release: git tag v$json"; fail=1
|
||||
fi
|
||||
|
||||
clash=$(git ls-files | tr '[:upper:]' '[:lower:]' | sort | uniq -d)
|
||||
if [ -z "$clash" ]; then
|
||||
echo "ok no paths differ only in case"
|
||||
else
|
||||
echo "FAIL paths differ only in case (breaks Windows/macOS extract):"
|
||||
echo "$clash" | sed 's/^/ /'; fail=1
|
||||
fi
|
||||
|
||||
exit "$fail"
|
||||
Reference in new issue
Block a user