2024-04-07 14:01:05 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
set -ex
|
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
2026-09-08 09:02:45 -03:00
|
|
|
# '-n' keeps a re-run idempotent: without it 'ln -fs' follows an existing
|
|
|
|
|
# symlink and creates the new link *inside* the target directory, leaving a
|
|
|
|
|
# stray 'tests/tests' and 'custom_components/adaptive_lighting/adaptive_lighting'
|
|
|
|
|
# in the working tree.
|
|
|
|
|
|
2024-04-07 14:01:05 +02:00
|
|
|
# Link custom components
|
|
|
|
|
cd core/homeassistant/components/
|
2026-09-08 09:02:45 -03:00
|
|
|
ln -fsn ../../../custom_components/adaptive_lighting adaptive_lighting
|
2024-04-07 14:01:05 +02:00
|
|
|
cd -
|
|
|
|
|
|
|
|
|
|
# Link tests
|
|
|
|
|
cd core/tests/components/
|
2026-09-08 09:02:45 -03:00
|
|
|
ln -fsn ../../../tests/ adaptive_lighting
|
2024-04-07 14:01:05 +02:00
|
|
|
cd -
|