Poke_Transporter_GB/compress_lz10.sh
Philippe Symons 0f8236575a Fix a couple of compile errors on latest-release branch
- Fix make clean by adding -f flag when removing output.json

- Fix broken compress_lz10.sh script: it had a check to avoid compressing when the
  input bin file hasn't changed. But the -nt operator also returns false if the output
  file doesn't exist.

- Fix compilation error on conflicting u32 typedef: libtonc defines one and so does data-generator.
  We shouldn't redefine it if the one from libtonc exists. The one in data-generator exists for compiling
  the tool for pc.

- Fix Dockerfile. For some reason the Dockerfile was now failing because Ubuntu manages the python pip
  packages. I fixed it with the --break-system-packages shortcut. It should be fine.
2025-11-27 20:27:35 +01:00

11 lines
208 B
Bash
Executable File

#!/bin/sh
infile="$1"
outfile="data/$(basename "$infile" .bin)_lz10.bin"
if [ ! -f "$outfile" ] || [ "$infile" -nt "$outfile" ]; then
gbalzss e "$infile" "$outfile"
echo -n "C"
else
echo -n "S"
fi