summaryrefslogtreecommitdiff
path: root/src/xi.sh
diff options
context:
space:
mode:
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 $@