95fb6c5195
- firmware: main.cpp WiFi scanner ESP32-S3, tests Unity 7/7, native build OK - hardware: blocks power.kicad_blocks + mcu.kicad_blocks (réutilisables) - ci.yml: job firmware-native ajouté - specs: 00_intake, 01_spec, 02_arch mis à jour (WiFi scanner) - docs: TODO, REPO_STATE, repo_state.json synchronisés - tools: repo_refresh.sh enrichi Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
23 lines
686 B
Bash
Executable File
23 lines
686 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Wrapper: calls kicad-cli inside kicad/kicad:10.0 Docker image
|
|
# Translates absolute host paths under KILL_LIFE_ROOT → /project/ paths
|
|
# Runs as current user so written files have correct ownership
|
|
KILL_LIFE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
|
|
# Rewrite each argument: replace KILL_LIFE_ROOT prefix with /project
|
|
args=()
|
|
for arg in "$@"; do
|
|
if [[ "$arg" == "${KILL_LIFE_ROOT}"* ]]; then
|
|
arg="/project${arg#${KILL_LIFE_ROOT}}"
|
|
fi
|
|
args+=("$arg")
|
|
done
|
|
|
|
exec docker run --rm \
|
|
--user "$(id -u):$(id -g)" \
|
|
-e HOME=/tmp \
|
|
-v "${KILL_LIFE_ROOT}:/project" \
|
|
-w /project \
|
|
kicad/kicad:10.0 \
|
|
kicad-cli "${args[@]}"
|