1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-19 21:10:07 -07:00
kiss/contrib/kiss-cargo-urlgen
2020-05-01 09:07:20 +03:00

13 lines
266 B
Bash
Executable File

#!/bin/sh
# Generate sources for rust packages
[ "$1" ] || {
printf 'usage: kiss-cargo-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