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 /pkg/default.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 'pkg/default.jar.do')
-rwxr-xr-x | pkg/default.jar.do | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/default.jar.do b/pkg/default.jar.do new file mode 100755 index 0000000..6fa7d4e --- /dev/null +++ b/pkg/default.jar.do @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +set -e +redo-ifchange ../packages.rc +. ../packages.rc +pkg=${1%.jar} +if [[ $(package_ext "$pkg") == "aar" ]]; then + redo-ifchange "$pkg.aar" + 7z e -tzip -so "$pkg.aar" classes.jar >"$3" +else + redo-ifchange get + . ./get "$pkg" "$3" +fi +# vim:ft=bash |