aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-14 06:28:32 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-14 06:28:32 +0000
commitf9eff050efb1c2b7443b1dd7633def90f0684aa9 (patch)
tree288a87b880c11118732a5bab3c1abf9bf3afb2a5
parentc10304e4c175c4c42334ef0dcd2f74d726fe62bc (diff)
downloadcpt-f9eff050efb1c2b7443b1dd7633def90f0684aa9.tar.gz
kiss: Added full dependency resolver.
FossilOrigin-Name: 3b2a927920ff9ee8e986e709c487434f63a13462a80279993ffe76b28b7e31b7
-rwxr-xr-xkiss16
1 files changed, 13 insertions, 3 deletions
diff --git a/kiss b/kiss
index e9631d6..e5a1174 100755
--- a/kiss
+++ b/kiss
@@ -42,10 +42,15 @@ pkg_setup() {
pkg_depends() {
while read -r dep; do
- pkg_list "$dep" || missing="$missing $dep"
+ pkg_list "$dep" || {
+ case $missing in
+ *" $dep,"*) ;;
+ *) missing="$missing $dep,"
+ pkg_setup "$dep"
+ pkg_depends ;;
+ esac
+ }
done 2>/dev/null < depends
-
- [ -n "$missing" ] && die "Missing dependencies:$missing"
}
pkg_sources() {
@@ -179,11 +184,16 @@ args() {
b*) [ -f checksums ] || die "Checksums missing, run '$0 checksum $name'"
pkg_depends
+
+ [ -n "$missing" ] && die "Missing dependencies:${missing%,}"
+
pkg_sources
pkg_verify
pkg_extract
pkg_build
+
[ -f nostrip ] || pkg_strip
+
pkg_manifest
pkg_tar ;;