aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-cargo-urlgen
blob: ba14aa9597b2143d7e485be6d9b8c11ce5747add (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

[ "$1" ] || {
    printf 'usage: kiss-carg-urlgen [crate-ver] [crate-ver]\n'
    exit 1
}

for crate in "$@"; do
    printf 'https://static.crates.io/crates/%s/%s.crate vendor\n' \
        "${crate%-*}" "$crate"
done