#! /bin/bash # Copyright (C) 2019 Igara Studio S.A. # $1 = first sprite sheet json file # $2 = second sprite sheet json file function compare_sheet_data() { cat $1 | grep -v "\"image\"" > $1-tmp cat $2 | grep -v "\"image\"" > $2-tmp diff -u $1-tmp $2-tmp } # --sheet and STDOUT d=$t/sheet mkdir $d # we need to create the directory because the >STDOUT redirection if ! $ASEPRITE -b sprites/1empty3.aseprite --sheet "$d/sheet.png" > "$d/stdout.json" ; then exit 1 fi cat >$d/compare.lua <$d/compare.lua <$d/create.lua <$d/compare.lua <$d/compare.lua <