fix: sed multi-line continuation inside single quotes breaks on shell

The backslash at the end of the sed pattern line was inside single
quotes. The shell treats it as a literal backslash, not a line
continuation; sed then sees \<newline> as an unterminated address
regex. Collapse both substitutions onto one sed invocation.
This commit is contained in:
Simone Licitra
2026-06-11 15:56:26 -04:00
parent 43e8370953
commit b2fb507097
2 changed files with 9034 additions and 9037 deletions
@@ -30,10 +30,7 @@ crystalexec.pico.bin: crystalexec.dll
# ── Step 3: embed PICO as C array ─────────────────────────────────────────────
crystalexec_pico.h: crystalexec.pico.bin
xxd -i $< | \
sed 's/unsigned char [a-z_A-Z0-9]*/unsigned char crystalexec_pico/; \
s/unsigned int [a-z_A-Z0-9]*/unsigned int crystalexec_pico_len/' \
> $@
xxd -i $< | sed 's/unsigned char [a-zA-Z0-9_]*/unsigned char crystalexec_pico/;s/unsigned int [a-zA-Z0-9_]*/unsigned int crystalexec_pico_len/' > $@
# ── Step 4 + 5: extension DLL with embedded PICO ──────────────────────────────
../crystal-exec.x64.dll: crystal-exec.c crystalexec_pico.h
File diff suppressed because it is too large Load Diff