diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-12-21 01:06:18 +0200 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-12-21 01:06:18 +0200 |
commit | 85601f555a3a57db44631706a25e0f933afd8551 (patch) | |
tree | 576f7f7518ebd6f7d1b6f3534218c747d2a14a43 /download-tilesets.sh | |
parent | 88dd7e5fb0798d441dab81e9173d0e2d63f0b75e (diff) |
works with different connections
Diffstat (limited to 'download-tilesets.sh')
-rwxr-xr-x | download-tilesets.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/download-tilesets.sh b/download-tilesets.sh new file mode 100755 index 0000000..0b9a5ec --- /dev/null +++ b/download-tilesets.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +cd ${0%/*} # go to project root + +URL="https://ftp.batnako.net/tilesets/" + +mkdir -p "files/tilesets" + +function download { + path="files/tilesets/$name" + + rm -rf "$path" + mkdir "$path" + + for ((i=0; i<${#tiles[@]}; i++)); do image="${tiles[$i]}.ppm" + wget -O "$path/$image" "$URL/$name/$image" + done +} + +name="black-white" +tiles=("corner" "cross" "empty" "line" "t") +download + +name="knots" +tiles=("corner" "cross" "empty" "line" "t") +download + +name="circuit" +tiles=("bridge" "component" "connection" "corner" "dskew" "skew" "substrate" "t" "track" "transition" "turn" "viad" "vias" "wire") +download |