From 1371d094351dcf1626bec9ac88378f25f01a13a9 Mon Sep 17 00:00:00 2001 From: Giovanni Bajo Date: Sat, 5 Oct 2024 22:43:06 +0200 Subject: [PATCH] mkfontbuiltin: avoid xxd -n which is not everywhere yet --- src/rdpq/mkfontbuiltin.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rdpq/mkfontbuiltin.sh b/src/rdpq/mkfontbuiltin.sh index b9e5c7511..3a0aaae3d 100755 --- a/src/rdpq/mkfontbuiltin.sh +++ b/src/rdpq/mkfontbuiltin.sh @@ -10,5 +10,7 @@ BUILTIN="monogram at01" rm -f rdpq_font_builtin.c for font in $BUILTIN; do "$N64_INST/bin/mkfont" --compress 0 --output $TMPDIR --range 20-BF --outline 1 "$@" "$FONTDB/$font.ttf" - xxd -i -n __fontdb_$font $TMPDIR/$font.font64 >>rdpq_font_builtin.c + OUTFN="$TMPDIR/$font.font64" + OUTFN_C=$(echo $OUTFN | sed 's/[/.]/_/g') + xxd -i $OUTFN | sed "s/${OUTFN_C}/__fontdb_${font}/g" >>rdpq_font_builtin.c done