#!/bin/bash SCALE_TEXTURES=/sparrow_path/util/texture_scaler/scale_textures.rb OUTPUT_PATH=/application_path/media/graphics echo "" echo "-> Renaming and copying high-res textures ..." # no scale, add suffix ${SCALE_TEXTURES} -s 1 -a @2x others/*.png ${OUTPUT_PATH}/2x echo "" echo "-> Resizing and copying low-res textures ..." # scale by 50% ${SCALE_TEXTURES} -s 0.5 others/*.png ${OUTPUT_PATH}/1x echo "" echo "Done!"