mirror of
https://github.com/licitrasimone/CrystalSliver
synced 2026-06-21 13:55:58 +00:00
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:
@@ -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
Reference in New Issue
Block a user