From db091bfd1db36ab66340ccad2eb7b6393a0aa3da Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Thu, 13 Apr 2023 23:53:48 +0200 Subject: Basic kotlin java application working --- default.flat.do | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 default.flat.do (limited to 'default.flat.do') 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 -- cgit v1.2.3-54-g00ecf