summaryrefslogtreecommitdiffstats
path: root/pkg/default.jar.do
blob: 6fa7d4e0ee9cb3e73e447bb5e7069298f34c29ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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