From 46ac53e11b49a7f9cdb92c3559b05f41ce90122f Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 4 Aug 2026 21:01:27 +0200 Subject: make: create symlinks to build flavor files This allows the editor to pick up all the code of the current build flavor. --- scripts/update-env-srcs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/update-env-srcs (limited to 'scripts/update-env-srcs') diff --git a/scripts/update-env-srcs b/scripts/update-env-srcs new file mode 100755 index 0000000..d75f84f --- /dev/null +++ b/scripts/update-env-srcs @@ -0,0 +1,8 @@ +#!/bin/sh + +SRC=$1 +MODE=$2 + +grep -Eho '\./.*-ENV\.[^"]*' "${SRC}"/* | sort | uniq | while read -r f; do + ln -sf "$(printf %s "$f" | sed "s/ENV/${MODE}/")" "${SRC}"/"$f" +done -- cgit v1.2.3