summaryrefslogtreecommitdiff
path: root/tools/dep_builders/dl
diff options
context:
space:
mode:
authordzwdz2021-08-08 19:48:48 +0200
committerdzwdz2021-08-08 19:48:48 +0200
commit9b561ea71ab38e2893e887b8d902e7f8e16bac89 (patch)
tree35903eb95af2b53a14fd32922ca78cc8fd41187a /tools/dep_builders/dl
parent6e5a5a3b27257f212fcd10a3580cfca3ea224fab (diff)
parentbd50355d96bb081394f01c7d8e89debd1c040cd4 (diff)
Merge branch 'main' of github.com:dzwdz/camellia
Diffstat (limited to 'tools/dep_builders/dl')
-rwxr-xr-xtools/dep_builders/dl9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/dep_builders/dl b/tools/dep_builders/dl
new file mode 100755
index 0000000..8cfeebc
--- /dev/null
+++ b/tools/dep_builders/dl
@@ -0,0 +1,9 @@
+#!/bin/sh
+# downloads a file to toolchain/cache unless it's already present there
+
+mkdir -p toolchain/cache
+OUT="toolchain/cache/$(basename $1)"
+
+[ -e "$OUT" ] && exit
+echo "downloading $1..."
+curl "$1" > $OUT