diff options
Diffstat (limited to 'default.flat.zip.do')
-rwxr-xr-x | default.flat.zip.do | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/default.flat.zip.do b/default.flat.zip.do new file mode 100755 index 0000000..90da780 --- /dev/null +++ b/default.flat.zip.do @@ -0,0 +1,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 |