1234567891011121314151617181920212223242526272829 |
- #!/usr/bin/bash
- check_size () {
- for f in "$1"*; do
- info=$(file "$f")
- if [[ $info != *" PNG image data"* ]]; then
- echo "Not PNG recognized: $f"
- elif [[ $info != *$2* ]]; then
- echo "Image has wrong size: $f"
- fi
- done
- }
- echo "TODO: Update the game.png and game.atlas after each image change!"
- check_size "./Images/UnitIcons/" "200 x 200"
- check_size "./Images/BuildingIcons/" "200 x 200"
- check_size "./Images/UnitPromotionIcons/" "50 x 50"
- check_size "./Images/PolicyIcons/" "50 x 50"
- check_size "./Images/PolicyBranchIcons/" "50 x 50"
- if [ ! -e "game.png" ]; then
- echo "Missing game.png"
- fi
- if [ ! -e "game.atlas" ]; then
- echo "Missing game.atlas"
- fi
|