kiss/contrib/kiss-cargo-urlgen
Dylan Araps fdf2775640
kiss: Integrate with user scripts.
kiss' help output will now include all executables found in $PATH
which begin with kiss-*. A comment string is optionally usable via
setting the second line of the script to a string.

Example:

...

This also means that 'kiss <script name>' is also possible now.
If I have a script in my $PATH called kiss-depends, I can now use
it via kiss with 'kiss depends'.
2020-04-18 11:39:37 +03:00

13 lines
267 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