summaryrefslogblamecommitdiff
path: root/.tools/pngcheck.sh
blob: a95225e8f825a3755f0a9615f49fbfc6c1f5b4c5 (plain) (tree)






















                                                             
#!/bin/bash

source ./.tools/init.sh

aptget_update
aptget_install pngcheck

export LOG1="pngcheck.log"
export LOG2="pngcheck2.log"

rm ${LOG1}
rm ${LOG2}

find . -type f -name "*.png" -exec pngcheck {} \; >${LOG1}

grep -v "32-bit RGB+alpha, non-interlaced, " ${LOG1} >${LOG2}
export DATA=$(cat pngcheck2.log)
if [[ -n "${DATA}" ]]; then
    echo "Images must be in 32 bit RGBA and non-interlanced"
    echo "Wrong images format found:"
    cat ${LOG2}
    exit 1
fi