summaryrefslogtreecommitdiff
path: root/src/xiget.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-14 00:36:38 +0000
committerdavidovski <david@davidovski.xyz>2022-02-14 00:36:38 +0000
commit5e31b33fbe30f7b1775b89fc23abd6c96675cf99 (patch)
tree701251552c86a037226c180af332d56a180a3791 /src/xiget.sh
parent9f529b0e85c7b38e97d8ebb0371f7a6859f882f4 (diff)
updated xisync to work faster
Diffstat (limited to 'src/xiget.sh')
-rw-r--r--src/xiget.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/xiget.sh b/src/xiget.sh
new file mode 100644
index 0000000..815c47f
--- /dev/null
+++ b/src/xiget.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+export CONF_FILE="/etc/xipkg.conf"
+
+CURL_OPTS="-SsL"
+
+DEP_GRAPH=$(parseconf -v dir.deps)
+
+get_deps() {
+ local name=$1
+ [ -f $DEP_GRAPH ] && sed -rn "s/^$name: (.*)/\1/p" $DEP_GRAPH || echo
+}