From 1117f2bef50ec65aa6bfe55e8e22beb5be092275 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 16 Feb 2022 16:58:36 +0000 Subject: added dependency resolving --- src/xi.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 src/xi.sh (limited to 'src/xi.sh') diff --git a/src/xi.sh b/src/xi.sh new file mode 100755 index 0000000..aaad140 --- /dev/null +++ b/src/xi.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +[ -z "${LIBDIR}" ] && LIBDIR=/usr/lib/xipkg +. ${LIBDIR}/profile.sh +. ${LIBDIR}/sync.sh +. ${LIBDIR}/get.sh + +export SYSROOT=/ +export CONF_FILE="/etc/xipkg.conf" +export VERBOSE=false +export RESOLVE_DEPS=true +export DO_SYNC=true +export UNSAFE=false +export NOCONFIRM=false + +while getopts ":r:c:nluyv" opt; do + case "${opt}" in + r) + SYSROOT="${OPTARG}" + ;; + c) + CONF_FILE="${OPTARG}" + ;; + n) + RESOLVE_DEPS=false + ;; + l) + DO_SYNC=false + ;; + u) + UNSAFE=true + ;; + y) + NOCONFIRM=true + ;; + v) + VERBOSE=true + ;; + esac +done + +shift $((OPTIND-1)) + +download $@ -- cgit v1.2.1