diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-04-13 23:53:48 +0200 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-04-14 03:12:14 +0200 |
commit | db091bfd1db36ab66340ccad2eb7b6393a0aa3da (patch) | |
tree | 5a70412afcb4d32086effffe84d7de3161790f46 /default.flat.do | |
parent | e27870b137aeab108816f4eb80ddaea1e639c3fb (diff) | |
download | android-jetpack-compose-redo-db091bfd1db36ab66340ccad2eb7b6393a0aa3da.tar.gz android-jetpack-compose-redo-db091bfd1db36ab66340ccad2eb7b6393a0aa3da.tar.xz android-jetpack-compose-redo-db091bfd1db36ab66340ccad2eb7b6393a0aa3da.zip |
Basic kotlin java application working
Diffstat (limited to 'default.flat.do')
-rw-r--r-- | default.flat.do | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/default.flat.do b/default.flat.do new file mode 100644 index 0000000..e8b2558 --- /dev/null +++ b/default.flat.do @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +set -e +src=${1%.flat} +dir=${src%%_*} +file=${src#*_} +src=res/$dir/$file +redo-ifchange .vars.rc +. ./.vars.rc +redo-ifchange "$BUILD_TOOLS/aapt2" "$src" +tmp=$(mktemp) +trap 'rm -f "$tmp"' EXIT +"$BUILD_TOOLS/aapt2" compile -o "$tmp" "$src" +unzip -p "$tmp" >"$3" +# vim:ft=bash |