diff options
author | davidovski <david@davidovski.xyz> | 2022-02-17 02:15:19 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-02-17 02:15:19 +0000 |
commit | 35dcb815e217c1135012ba81616496c3ad10b3f5 (patch) | |
tree | c1190a25e1cc2ad74674a06f1faac8a0b9db871e /src/xi.sh | |
parent | 1117f2bef50ec65aa6bfe55e8e22beb5be092275 (diff) |
added file installing
Diffstat (limited to 'src/xi.sh')
-rwxr-xr-x | src/xi.sh | 39 |
1 files changed, 34 insertions, 5 deletions
@@ -1,19 +1,17 @@ #!/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 QUIET=false export RESOLVE_DEPS=true export DO_SYNC=true export UNSAFE=false export NOCONFIRM=false -while getopts ":r:c:nluyv" opt; do +while getopts ":r:c:qnluyv" opt; do case "${opt}" in r) SYSROOT="${OPTARG}" @@ -36,9 +34,40 @@ while getopts ":r:c:nluyv" opt; do v) VERBOSE=true ;; + q) + QUIET=true + ;; esac done +. ${LIBDIR}/profile.sh +. ${LIBDIR}/util.sh +. ${LIBDIR}/validate.sh + +. ${LIBDIR}/sync.sh +. ${LIBDIR}/install.sh +. ${LIBDIR}/get.sh + shift $((OPTIND-1)) -download $@ +if [ "$#" = "0" ]; then + echo "xilinux running xipkg (palceholder text)" +else + + + case "$1" in + "sync") + sync + ;; + "install" | "update") + shift + $DO_SYNC && sync + install $@ + ;; + *) + $DO_SYNC && sync + fetch $@ + ;; + esac +fi +printf "${RESET}" |