Use printf(1) in a POSIX-compliant way

POSIX printf(1) doesn't support the \xXX specifier to print
characters by their hexadecimal values.  By contrast, printing
octal values is portable.

Reference: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/printf.html

Signed-off-by: Jeff Epler <jepler@unpythonic.net>
This commit is contained in:
Jeff Epler 2017-07-10 20:53:30 -05:00 committed by Michael Steil
parent 40ed8fddd4
commit c10e48b9ef

View file

@ -2,7 +2,7 @@ all:
ca65 80columns.s
ca65 -o charset.o charset.s
ld65 -C 80columns.cfg 80columns.o charset.o -o 80columns.bin
printf "\x00\xc8" > 80columns.prg
printf "\0\310" > 80columns.prg
cat 80columns.bin >> 80columns.prg
exomizer sfx 51200 -q -n -o 80columns-compressed.prg 80columns.prg