diff options
author | xengineering <me@xengineering.eu> | 2024-08-24 21:26:28 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-08-24 21:26:28 +0200 |
commit | 6bb372e0ca443bda11f05d19ba96742f5de2027a (patch) | |
tree | c9d5b7a7653fc369049478ed5eb73f717c735e42 | |
parent | 73ecc1b734d4ea1102f9aa1057782a381e2768e2 (diff) | |
download | iot-contact-6bb372e0ca443bda11f05d19ba96742f5de2027a.tar iot-contact-6bb372e0ca443bda11f05d19ba96742f5de2027a.tar.zst iot-contact-6bb372e0ca443bda11f05d19ba96742f5de2027a.zip |
tools: Remove last tool download.sh
The provided documentation download is not useful anymore. It might be
re-introduced later if required.
-rwxr-xr-x | tools/download.sh | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/tools/download.sh b/tools/download.sh deleted file mode 100755 index 1a312ef..0000000 --- a/tools/download.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - - -set -euf - - -# absolute paths -script="$(realpath $0)" -tools="$(dirname "${script}")" -src="$(dirname "${tools}")" -doc="${src}/doc" - -documents=' -ft232r.pdf https://www.ftdichip.com/old2020/Support/Documents/DataSheets/ICs/DS_FT232R.pdf 9dc583a87fdd8cc20f538197bb4cf807 -' - - -mkdir -pv "$doc" - -echo "$documents" | while read line -do - if [ "$line" == '' ] - then - continue - fi - - name="$(echo "$line" | cut -d$'\t' -f1)" - url="$(echo "$line" | cut -d$'\t' -f2)" - checksum="$(echo "$line" | cut -d$'\t' -f3)" - path="${doc}/${name}" - - if [ ! -f "$path" ] - then - curl "$url" > "$path" - fi - - if [ "${checksum} ${path}" == "$(md5sum "$path")" ] - then - echo "OK ${name}" - else - echo "NOT OK ${name}" - fi -done - -echo "External documentation saved in ${doc}" |