summaryrefslogtreecommitdiff
path: root/tools/dep_builders/dl
diff options
context:
space:
mode:
authordzwdz2021-08-05 19:13:46 +0000
committerdzwdz2021-08-05 19:13:46 +0000
commit0dd98382208f12e36f22ad50791180afe8232ce6 (patch)
tree13741e75653fe672f2a3940130e2384cb5df8d14 /tools/dep_builders/dl
parentaf43187f4ebee3b093b65da8e2eedb6dac1d9d7c (diff)
add a script which builds i686-elf-binutils
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