1 2 3 4 5 6 7 8 9 10 11
#!/usr/bin/env bash set -e src=${1%.flat.zip} dir=${src%%_*} file=${src#*_} src=res/$dir/$file redo-ifchange .vars.rc . ./.vars.rc redo-ifchange "$BUILD_TOOLS/aapt2" "$src" "$BUILD_TOOLS/aapt2" compile -o "$3" "$src" # vim:ft=bash