diff options
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 |