summaryrefslogtreecommitdiff
path: root/src/xi.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-16 16:58:36 +0000
committerdavidovski <david@davidovski.xyz>2022-02-16 16:58:36 +0000
commit1117f2bef50ec65aa6bfe55e8e22beb5be092275 (patch)
treeaca60d8297c9a99e551664df931ed36ef4f49164 /src/xi.sh
parent5e31b33fbe30f7b1775b89fc23abd6c96675cf99 (diff)
added dependency resolving
Diffstat (limited to 'src/xi.sh')
-rwxr-xr-xsrc/xi.sh44
1 files changed, 44 insertions, 0 deletions
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 $@