#!/bin/sh
set -eu
for f in *.bin; do
    echo "Zipping $f"
    xz -vv -z -9 -e -T 4 $f
    if ! [ $? -eq 0 ]; then
        echo "Zipping failed!"
    fi
done
