summaryrefslogtreecommitdiff
path: root/lib/font/graphics/zip/dl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/font/graphics/zip/dl.sh')
-rwxr-xr-xlib/font/graphics/zip/dl.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/font/graphics/zip/dl.sh b/lib/font/graphics/zip/dl.sh
new file mode 100755
index 0000000..c482ca9
--- /dev/null
+++ b/lib/font/graphics/zip/dl.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+< list sort -R | while read -r url
+do
+ file="$(echo "$url" | sed -e "s|.*/||")"
+ if ! [ -f "$file" ]
+ then
+ curl -LO "$url"
+ case "$file" in
+ *.tar.*)
+ tar xf "$file"
+ ;;
+ *)
+ dir="${file%.*}"
+ mkdir $dir
+ cd $dir
+ 7z e ../"$file"
+ cd ..
+ ;;
+ esac
+ fi
+done