diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-04-21 23:50:38 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2023-04-21 23:50:38 +0100 |
commit | 16a36c812fabda812ecf3aaa7f12fa6f44c66b2e (patch) | |
tree | ccae60abf8301ae451cfa1f21c33b8a62d5306cf /paste.jar.do | |
parent | db091bfd1db36ab66340ccad2eb7b6393a0aa3da (diff) | |
download | android-jetpack-compose-redo-master.tar.gz android-jetpack-compose-redo-master.tar.xz android-jetpack-compose-redo-master.zip |
Diffstat (limited to 'paste.jar.do')
-rwxr-xr-x | paste.jar.do | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/paste.jar.do b/paste.jar.do new file mode 100755 index 0000000..f3255e3 --- /dev/null +++ b/paste.jar.do @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +set -e +redo-ifchange .vars.rc packages.rc +. ./.vars.rc +. ./packages.rc +classpath=($PLATFORM/android.jar compile.packages.jar R.jar) +plugin=$(package_file "$compose_compiler") +sources=(MainActivity.kt Theme.kt) +redo-ifchange "$KOTLINC" "$plugin" "$classpath" "${classpath[@]}" "${sources[@]}" +IFS=:; classpath=${classpath[*]} +tmp=$(mktemp -d) +trap 'rm -rf "$tmp"' EXIT +"$KOTLINC" -Xplugin="$plugin" -jvm-target 1.8 -cp "$classpath" -d "$tmp" "${sources[@]}" +jar --create --no-compress --date=2000-01-01T00:00:00Z --file "$3" -C "$tmp" . +# vim:ft=bash |