diff options
author | dzwdz | 2021-08-08 19:48:48 +0200 |
---|---|---|
committer | dzwdz | 2021-08-08 19:48:48 +0200 |
commit | 9b561ea71ab38e2893e887b8d902e7f8e16bac89 (patch) | |
tree | 35903eb95af2b53a14fd32922ca78cc8fd41187a /tools/dep_builders/dl | |
parent | 6e5a5a3b27257f212fcd10a3580cfca3ea224fab (diff) | |
parent | bd50355d96bb081394f01c7d8e89debd1c040cd4 (diff) |
Merge branch 'main' of github.com:dzwdz/camellia
Diffstat (limited to 'tools/dep_builders/dl')
-rwxr-xr-x | tools/dep_builders/dl | 9 |
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 |